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
File details
Details for the file llama_index_retrievers_duckdb_retriever-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_retrievers_duckdb_retriever-0.3.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b23ef77ea696606b886c9b2f325ebc4ddde2c14a41e996e98f6ee0e078cf2d76 |
|
MD5 | 0cbd8adce091d73dfc4239cdba7080d2 |
|
BLAKE2b-256 | f2f749418f4e7500cf43dcc5bf8c64723b9e14554de23dd49c4174b8a8c7c8d0 |
File details
Details for the file llama_index_retrievers_duckdb_retriever-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_retrievers_duckdb_retriever-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b7f495ae0b274df7bccb6c54cc7c32a579e389224d6ccafdde595bc1aaa04c |
|
MD5 | 88f4bb9048b0efa09f3115a35a252fb8 |
|
BLAKE2b-256 | dd021e4ca8b7f298fa94803138d568c669f8387622fb9692fe350a97dd3b9665 |