Skip to content

Commit

Permalink
bug: Fixed Mismatched Quotes for host (#89)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sahusiddharth authored Dec 19, 2023
1 parent 2d25cbe commit f92eb7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/weaviate-document-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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}})
```
```

0 comments on commit f92eb7c

Please sign in to comment.