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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_retrievers_duckdb_retriever-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275cd786568a3a19778d3a2ae8eb2a8f9ba47e28a6cec4c1aaca1d7f658f2443 |
|
MD5 | 025b6fc8ba15ff5f316b151e7dd97dca |
|
BLAKE2b-256 | 7e5584d1637bfcac11016775f915ffe18b489b634a2e0aacf475e4ac7ed28811 |
Close
Hashes for llama_index_retrievers_duckdb_retriever-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b4d2a1b66799e3743e555a105e4cc0f2a709806d5ac39fc39193a9dffe80ee6 |
|
MD5 | 76af89fd267f1bebfc2e71b95fb0e243 |
|
BLAKE2b-256 | 1bb745227cedabfec4779b62dbc219ea3100616aecb7c4ac5e62a1d37d564bc3 |