Tonic commited on
Commit
368b82e
·
1 Parent(s): e8d06a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ auth_config = weaviate.auth.AuthApiKey(api_key=weaviate_api_key)
22
  client = weaviate.Client(url=weaviate_url, auth_client_secret=auth_config, additional_headers={"X-Cohere-Api-Key": cohere_api_key})
23
 
24
  # Initialize vectorstore
25
- vectorstore = Weaviate(client, index_name="Articles", text_key="text")
26
  vectorstore._query_attrs = ["text", "title", "url", "views", "lang", "_additional {distance}"]
27
  vectorstore.embedding = CohereEmbeddings(model="embed-multilingual-v2.0", cohere_api_key=cohere_api_key)
28
 
 
22
  client = weaviate.Client(url=weaviate_url, auth_client_secret=auth_config, additional_headers={"X-Cohere-Api-Key": cohere_api_key})
23
 
24
  # Initialize vectorstore
25
+ vectorstore = weaviate(client, index_name="Articles", text_key="text")
26
  vectorstore._query_attrs = ["text", "title", "url", "views", "lang", "_additional {distance}"]
27
  vectorstore.embedding = CohereEmbeddings(model="embed-multilingual-v2.0", cohere_api_key=cohere_api_key)
28