mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 22:59:05 +00:00
## Description This pull-request extends the existing vector search strategies of MongoDBAtlasVectorSearch to include Hybrid (Reciprocal Rank Fusion) and Full-text via new Retrievers. There is a small breaking change in the form of the `prefilter` kwarg to search. For this, and because we have now added a great deal of features, including programmatic Index creation/deletion since 0.1.0, we plan to bump the version to 0.2.0. ### Checklist * Unit tests have been extended * formatting has been applied * One mypy error remains which will either go away in CI or be simplified. --------- Signed-off-by: Casey Clements <casey.clements@mongodb.com> Co-authored-by: Erick Friis <erick@langchain.dev>
16 lines
436 B
Python
16 lines
436 B
Python
"""Search Retrievers of various types.
|
|
|
|
Use ``MongoDBAtlasVectorSearch.as_retriever(**)``
|
|
to create MongoDB's core Vector Search Retriever.
|
|
"""
|
|
|
|
from langchain_mongodb.retrievers.full_text_search import (
|
|
MongoDBAtlasFullTextSearchRetriever,
|
|
)
|
|
from langchain_mongodb.retrievers.hybrid_search import MongoDBAtlasHybridSearchRetriever
|
|
|
|
__all__ = [
|
|
"MongoDBAtlasHybridSearchRetriever",
|
|
"MongoDBAtlasFullTextSearchRetriever",
|
|
]
|