From 123cfd74377744476d05bfdd4a218fe6abd3bd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bilge=20Y=C3=BCcel?= Date: Thu, 28 Dec 2023 17:15:18 +0300 Subject: [PATCH] Add MongoDBAtlasDocumentStore api reference (#6640) * Update import path of MongoDBAtlasDocumentStore --- docs/pydoc/config/document-store.yml | 1 + haystack/document_stores/__init__.py | 1 + haystack/document_stores/mongodb_atlas.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/pydoc/config/document-store.yml b/docs/pydoc/config/document-store.yml index 4e39d54d3d..bfb056265b 100644 --- a/docs/pydoc/config/document-store.yml +++ b/docs/pydoc/config/document-store.yml @@ -7,6 +7,7 @@ loaders: "es8", "opensearch", "memory", + "mongodb_atlas", "sql", "faiss", "weaviate", diff --git a/haystack/document_stores/__init__.py b/haystack/document_stores/__init__.py index 208d86e5d0..6dbe812d54 100644 --- a/haystack/document_stores/__init__.py +++ b/haystack/document_stores/__init__.py @@ -13,3 +13,4 @@ from haystack.document_stores.faiss import FAISSDocumentStore from haystack.document_stores.pinecone import PineconeDocumentStore from haystack.document_stores.weaviate import WeaviateDocumentStore +from haystack.document_stores.mongodb_atlas import MongoDBAtlasDocumentStore diff --git a/haystack/document_stores/mongodb_atlas.py b/haystack/document_stores/mongodb_atlas.py index 5b4b42b65d..eb2b726da0 100644 --- a/haystack/document_stores/mongodb_atlas.py +++ b/haystack/document_stores/mongodb_atlas.py @@ -36,7 +36,7 @@ def __init__( ): """ Document Store using MongoDB Atlas as a backend (https://www.mongodb.com/docs/atlas/getting-started/). - It is compatible with EmbeddingRetrievers and filters. + It is compatible with EmbeddingRetriever and filters. :param mongo_connection_string: MongoDB Atlas connection string in the format: "mongodb+srv://{mongo_atlas_username}:{mongo_atlas_password}@{mongo_atlas_host}/?{mongo_atlas_params_string}". :param database_name: Name of the database to use.