Skip to main content

llama-index retrievers duckdb-retriever integration

Project description

LlamaIndex Retrievers Integration: DuckDBRetriever

pip install llama-index-retrievers-duckdb-retriever.

What is this?

This is a BM25 Retriever for DuckDB that can be used with LlamaIndex to enable full-text search.

How to use

This was created with reference to DuckDB Full-Text Search Extension, so it's mostly the same.

Please refer to that.

However, while DuckDBVectorStore is an VectorStore, DuckDBRetriever is a Retriever.

DuckDBRetriever Example:

from llama_index.retrievers.duckdb_retriever import DuckDBRetriever

retriever = DuckDBRetriever(database_name="vector.db", persist_dir="duckdb")
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_duckdb_retriever-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b23ef77ea696606b886c9b2f325ebc4ddde2c14a41e996e98f6ee0e078cf2d76
MD5 0cbd8adce091d73dfc4239cdba7080d2
BLAKE2b-256 f2f749418f4e7500cf43dcc5bf8c64723b9e14554de23dd49c4174b8a8c7c8d0

See more details on using hashes here.

File details

Details for the file llama_index_retrievers_duckdb_retriever-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44b7f495ae0b274df7bccb6c54cc7c32a579e389224d6ccafdde595bc1aaa04c
MD5 88f4bb9048b0efa09f3115a35a252fb8
BLAKE2b-256 dd021e4ca8b7f298fa94803138d568c669f8387622fb9692fe350a97dd3b9665

See more details on using hashes here.

Supported by

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