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

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_duckdb_retriever-0.5.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.5.0.tar.gz
Algorithm Hash digest
SHA256 72e37cd7a8c0f3e4aae167b7bc799b92e598d175b6e0af361c4c620fea287852
MD5 704cb978cca041aebf6e4eba3e9363e8
BLAKE2b-256 57019a337faeb5f9c1a1af1c00b1d648252811d6d4fed58d5349c81a0965f51d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cbe2c8767f19de54ff1e28edf1a498eceb2c327da5a6ee63b388fb553fd7d5a
MD5 214bf0ae6287ab1e19e34212cc1a2e6c
BLAKE2b-256 fd56c135af85fe24c1a8b20d8cfaa32b7e3bec546479b4cc2b58befb19843841

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