Skip to main content

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.

Python PyPI Tests MCP

🌐 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:

  1. chunk items and store their embeddings in a DuckDB database
  2. bake the database into the container that packages your agent
  3. search semantically using vector distances and BM25 in tens of milliseconds

Two ways to add semantic search to an agent: the usual external vector database with a network round trip, versus a DuckDB file baked into the agent's own container.

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

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)

Source distribution for duckdb-vectors 261130
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)

Table of built distributions (wheels) for duckdb-vectors 261130
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page