retrievers#

Search Retrievers of various types.

Use MongoDBAtlasVectorSearch.as_retriever(**) to create MongoDB’s core Vector Search Retriever.

Classes

retrievers.full_text_search.MongoDBAtlasFullTextSearchRetriever

Retriever performs full-text searches using Lucene's standard (BM25) analyzer.

retrievers.graphrag.MongoDBGraphRAGRetriever

RunnableSerializable API of MongoDB GraphRAG.

retrievers.hybrid_search.MongoDBAtlasHybridSearchRetriever

Hybrid Search Retriever combines vector and full-text searches weighting them the via Reciprocal Rank Fusion (RRF) algorithm.

retrievers.parent_document.MongoDBAtlasParentDocumentRetriever

MongoDB Atlas's ParentDocumentRetriever

retrievers.self_querying.MongoDBAtlasSelfQueryRetriever

Retriever that uses an LLM to deduce filters for Vector Search algorithm.

retrievers.self_querying.MongoDBStructuredQueryTranslator()

Translator between MongoDB Query API and LangChain's StructuredQuery.