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
File details
Details for the file llama_index_retrievers_mongodb_atlas_bm25_retriever-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_retrievers_mongodb_atlas_bm25_retriever-0.3.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a17053cb1e145077a8bb5d86886bdc63bbf17735c6e6c25473718092b1b77ad2 |
|
MD5 | 9a1e05d0c43c7f7ba0243c6c55310424 |
|
BLAKE2b-256 | 94c985996d6d971817a2da3420ddad5e3d1995a02245e7764e5692ebb4768f6e |
File details
Details for the file llama_index_retrievers_mongodb_atlas_bm25_retriever-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_retrievers_mongodb_atlas_bm25_retriever-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b642cb9bb8d523a94d9f637c998bc3adbd1541be15b7c1bf1ac338304c924dd7 |
|
MD5 | 7a7d74a24f4812c131436e26dc8b9e51 |
|
BLAKE2b-256 | 0ce3d404759ca0fcbe95136927cacbfe473d892dbb3ebd51ba0d68fdbac90385 |