From f92eb7c0c277da3e643fc673a5081829657c18e7 Mon Sep 17 00:00:00 2001 From: sahusiddharth <112792547+sahusiddharth@users.noreply.github.com> Date: Tue, 19 Dec 2023 20:39:18 +0530 Subject: [PATCH] bug: Fixed Mismatched Quotes for host (#89) SyntaxError because the interpreter expects the closing quote to match the opening one. To avoid this error, make sure to use the same type of quote for both the opening and closing of the string. --- integrations/weaviate-document-store.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/weaviate-document-store.md b/integrations/weaviate-document-store.md index a6db4df6..262c78cc 100644 --- a/integrations/weaviate-document-store.md +++ b/integrations/weaviate-document-store.md @@ -49,7 +49,7 @@ from haystack import Pipeline from haystack.document_stores import WeaviateDocumentStore from haystack.nodes import EmbeddingRetriever, MarkdownConverter, PreProcessor -document_store = WeaviateDocumentStore(host='http://localhost", +document_store = WeaviateDocumentStore(host="http://localhost", port=8080, embedding_dim=768) converter = MarkdownConverter() @@ -96,4 +96,4 @@ query_pipeline.add_node(component=retriever, name="Retriever", inputs=["Query"]) query_pipeline.add_node(component=prompt_node, name="PromptNode", inputs=["Retriever"]) query_pipeline.run(query = "What is Weaviate", params={"Retriever" : {"top_k": 5}}) -``` \ No newline at end of file +```