Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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 |
|