Tonic commited on
Commit
c17c16b
·
1 Parent(s): 17f29f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -20,7 +20,6 @@ weaviate_url = os.getenv('WEAVIATE_URL')
20
  # Weaviate connection
21
  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
- vectorstore = Qdrant(client, index_name="Articles", text_key="text")
24
  vectorstore._query_attrs = ["text", "title", "url", "views", "lang", "_additional {distance}"]
25
  vectorstore.embedding = CohereEmbeddings(model="embed-multilingual-v2.0", cohere_api_key=cohere_api_key)
26
 
 
20
  # Weaviate connection
21
  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
  vectorstore._query_attrs = ["text", "title", "url", "views", "lang", "_additional {distance}"]
24
  vectorstore.embedding = CohereEmbeddings(model="embed-multilingual-v2.0", cohere_api_key=cohere_api_key)
25