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.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d3d8b6d4e88970dd247e21eaf2118efd911616b365d70a0e5f3f5c20804ec87a
MD5 858dfeff8d3d674e96a7838dff77209f
BLAKE2b-256 77314d85f2965471fa758a7d84e89ca53527c8eb9cfb6149cee444346ffec2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_mongodb_atlas_bm25_retriever-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5acf61b2ac872d53893f3e29567b4edb7bdd66cdb494001468b82fbe4370882
MD5 682d0a625ccef7fdbd1cb58281e35066
BLAKE2b-256 91d75e24ffd63039b8607d52b35f42d545b7bcccdbb45954f01b27ee04d89bb6

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