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

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.5.1.tar.gz
Algorithm Hash digest
SHA256 e92141d2da0af7018a91add1688420b2b5350061a47c54207ca87e487aa8bdb4
MD5 4a795da4815e50bdaf2dc4476fa90cc0
BLAKE2b-256 aa1e879f0cb3c4d4bafe6f5df9544c3de04790dd64bb67ea1819ce3170093e29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_duckdb_retriever-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab96f49fd83b89c612a9295947a9cd969eb4c5dd409c1bf7f4629f5d52885ae
MD5 4412994346fc69d8e518f598638a99a5
BLAKE2b-256 690d77510c5121a2ab977589c499c27282a6f0848f721d8896ce639dff6022c5

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