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

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