duckdb-vectors
A frugal, embeddable semantic-search building block for agentic systems — hybrid vector + exact-token search over a local DuckDB file, no external vector database.
🌐 Browse the documentation site — a searchable guide to every use case, harness, and deployment.
duckdb-vectors is a python package that facilitates the implementation of small-scale semantic search into any kind of agentic system, in 3 steps:
- chunk items and store their embeddings in a DuckDB database
- bake the database into the container that packages your agent
- search semantically using vector distances and BM25 in tens of milliseconds
Install
$ pip install duckdb-vectors
Quick start
Index a folder of Markdown and PDF files into one DuckDB file, then search it:
$ duckdb-vectors index ./docs # index a folder
$ duckdb-vectors status # report on database content
$ duckdb-vectors search "my question" # hybrid search
$ duckdb-vectors mcp # serve retrieval as an MCP stdio server
from duckdb_vectors import VectorStore
store = VectorStore()
for hit in store.query("my question", top_k=3):
print(hit.score, hit.chunk.source, hit.chunk.text)
Read the documentation
- Try it in 5 minutes: a tutorial that builds its own tiny corpus.
- Is it for me?: when it fits, why, and the alternatives.
- Core concepts: chunks, embeddings, hybrid search and a glossary.
- User guide: index, search, configure, integrate and deploy.
- Architecture: building blocks, data model and design choices.
- Connect it to your harness: Docker Agent, LangChain, Kiro, OpenCode and more.
- Performance: measured latency, index size and model choice.
Contributing
Contributions are welcome. Adding an embedding backend or a chunker is a great first pull request. See CONTRIBUTING.md for the development setup, project principles, and pull-request guidelines.
License
MIT.
Metadata
Release files for duckdb-vectors 261130
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duckdb_vectors-261130.tar.gz | 117.3 kB | With provenance | Details for duckdb_vectors-261130.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duckdb_vectors-261130-py3-none-any.whl | Python 3 | none | any | Details for duckdb_vectors-261130-py3-none-any.whl |
Total release size: 254.6 kB
Release files / duckdb_vectors-261130.tar.gz
| Download URL | duckdb_vectors-261130.tar.gz |
|---|---|
| Size | 117.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e01b4201a38f8aa38bbb9c099982f352323fc742928db3efd1732f56f6a8d0a
|
|
BLAKE2b-256 checksum How to use checksums |
fc84b41cbc23185c2415c93f41e2232cc4c763cf7b60def4de307a7fee041095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / duckdb_vectors-261130-py3-none-any.whl
| Download URL | duckdb_vectors-261130-py3-none-any.whl |
|---|---|
| Size | 137.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e28eaed5e59f9b86501576228871ac97e66742d8de0eb7c07e3521b269333ec
|
|
BLAKE2b-256 checksum How to use checksums |
786ee1b1bb62c39dd7de0b4e0762f82b0a80c33cde8d241b6a33121a0c59bda3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for duckdb-vectors 261130
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for duckdb_vectors-261130.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.