llama-index retrievers mongodb-atlas-bm25-retriever integration
Project description
LlamaIndex Retrievers Integration: MongoDBAtlasBM25Retriever
What is this?
This is a BM25 Retriever for MongoDB Atlas that can be used with LlamaIndex.
How to use
This was created with reference to MongoDBAtlasVectorSearch, so it's mostly the same.
Please refer to that.
However, while MongoDBAtlasVectorSearch
is an VectorStore, MongoDBAtlasBM25Retriever
is a Retriever.
MongoDBAtlasBM25Retriever Example:
mongodb_client = pymongo.MongoClient(mongo_uri)
retriever = MongoDBAtlasBM25Retriever(
mongodb_client=mongodb_client,
db_name="vectorstore",
collection_name="vector_collection",
index_name="index_vector_collection",
)
nodes = retriever.retrieve("retrieve_query")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa016e540bbbbf7ea385127e2a17fb73fd5d9aac8dca0bb9a40da07ee596d66 |
|
MD5 | a06a7bfd852fee07e45a82e62f7f98ef |
|
BLAKE2b-256 | 92a31a2403f83f1b30b4eceffdf92c0e64c852b0ea48404f74e7f554e7260ac1 |
Close
Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161be8049f9ed0e5d066e4a9a7d3fa803adac187e679e009a08acc246d913376 |
|
MD5 | fbddc913abee2386136aff29dc06d61b |
|
BLAKE2b-256 | 2ab0ba97f34bacbb0e78a549fcb2204607f99909f961b32a86c2491e22a431a6 |