MongoDB Atlas
MongoDB Atlas is a fully-managed cloud database available in AWS, Azure, and GCP. It now has support for native Vector Search on the MongoDB document data.
Installation and Setup
See detail configuration instructions.
We need to install langchain-mongodb python package.
pip install langchain-mongodb
Vector Store
See a usage example.
from langchain_mongodb import MongoDBAtlasVectorSearch
API Reference:MongoDBAtlasVectorSearch
Retrievers
Full Text Search Retriever
Hybrid Search Retrieverperforms full-text searches using Lucene’s standard (BM25) analyzer.
from langchain_mongodb.retrievers import MongoDBAtlasFullTextSearchRetriever
API Reference:MongoDBAtlasFullTextSearchRetriever
Hybrid Search Retriever
Hybrid Search Retrievercombines vector and full-text searches weighting them the viaReciprocal Rank Fusion(RRF) algorithm.
from langchain_mongodb.retrievers import MongoDBAtlasHybridSearchRetriever
API Reference:MongoDBAtlasHybridSearchRetriever