Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.0.tar.gz
Algorithm Hash digest
SHA256 046087d3f482445066cfdb88153baacfff68da74991190ef7acb42fd10a0bd72
MD5 34591f83d0a0f14f73329fbdcde37e87
BLAKE2b-256 9df08a5fe6701373dc065a2d758f58b2ed20d617c054e777f696d861bdc7afce

See more details on using hashes here.

File details

Details for the file llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f51dda76e9d28a20ea532973fbc14dfe965b8c21afc124f783c17d00302f520
MD5 38fae279c77453da66c1b06a0915dc93
BLAKE2b-256 5a52bffb1a9f5fdf5f8bae0d026360a1eecaef11e7b23211058a41731db174b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page