Skip to content

Commit

Permalink
Update mongodb.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgeyucel authored Jan 26, 2024
1 parent e2a6b6b commit 129fe09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integrations/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ ds=MongoDBAtlasDocumentStore(
mongo_connection_string="mongodb+srv://{mongo_atlas_username}:{mongo_atlas_password}@{mongo_atlas_host}/?{mongo_atlas_params_string}",
database_name="database_name",
collection_name="collection_name",
vector_search_index="vector_search_index"
)
```

Expand All @@ -58,6 +59,7 @@ document_store=MongoDBAtlasDocumentStore(
mongo_connection_string="mongodb+srv://{mongo_atlas_username}:{mongo_atlas_password}@{mongo_atlas_host}/?{mongo_atlas_params_string}",
database_name="database_name",
collection_name="collection_name",
vector_search_index="vector_search_index",
embedding_dim=1536
)
converter = MarkdownConverter()
Expand All @@ -83,7 +85,8 @@ from haystack.nodes import AnswerParser, EmbeddingRetriever, PromptNode, PromptT
document_store=MongoDBAtlasDocumentStore(
mongo_connection_string="mongodb+srv://{mongo_atlas_username}:{mongo_atlas_password}@{mongo_atlas_host}/?{mongo_atlas_params_string}",
database_name="database_name",
collection_name="collection_name"
collection_name="collection_name",
vector_search_index="vector_search_index"
)

retriever = EmbeddingRetriever(document_store = document_store,
Expand Down

0 comments on commit 129fe09

Please sign in to comment.