isayahc commited on
Commit
abdaff3
1 Parent(s): 8bbb154
Files changed (1) hide show
  1. query_vectore_store.py +16 -0
query_vectore_store.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from weaviate_utils import init_client
2
+
3
+ def main():
4
+ weaviate_client = init_client()
5
+ component_collection = weaviate_client.collections.get("Component")
6
+ response = component_collection.generate.near_text(
7
+ query="biology",
8
+ limit=2,
9
+ grouped_task="Write a tweet with emojis about these facts."
10
+ )
11
+
12
+ print(response.generated)
13
+ x = 0
14
+
15
+ if __name__ == '__main__':
16
+ main()