Communication kit
You are about to mention duckdb-vectors in a post, a talk, an awesome-list or a catalog? Copy what you need from this page. Each block has a copy button.
Pitch
In 8 words:
Semantic search for agents, in one DuckDB file.In 1 sentence:
duckdb-vectors is a small Python package that adds hybrid semantic and exact-token search to an agent from a single DuckDB file baked into its container, with no vector database to run.In 1 paragraph:
duckdb-vectors indexes a modest, read-mostly corpus into a single DuckDB file and answers hybrid semantic and exact-token queries with a local function call in tens of milliseconds. The file bakes into the agent's own container image, so there is no external vector database to run, pay for, or keep alive. Embedding and chunking are pluggable, and an MCP-over-stdio server lets any MCP client call the read-only search tools.Quotable facts
Each fact links to the page that backs it.
1. One DuckDB file is one index, baked read-only into the agent's container image: no vector database service and no network hop on the query path.2. Retrieval takes about 26 ms at p50 over a 1,000-chunk index and about 105 ms over 100,000 chunks, fully in-process, on a MacBook Pro M1 (2021).How fast is a query? and How does query time grow with the corpus?
3. Search is hybrid: an exact cosine scan fused with a BM25 exact-token scan through Reciprocal Rank Fusion.4. There is no ANN index by default, because measurement shows HNSW is not worth its recall and persistence cost at this scale.Why brute force, not an ANN index?
5. Embedding is local and offline by default. Cloud embedding with Amazon Bedrock Titan is opt-in.Which model and dimension should I choose?
Diagram
The picture compares the usual external vector database with a DuckDB file baked into the agent's container. Download the image and use this alternative text:
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.
Badges
[](https://pypi.org/project/duckdb-vectors/)
[](https://pypi.org/project/duckdb-vectors/)
[](https://github.com/bernard357/duckdb-vectors/actions/workflows/integrate.yml)
[](https://bernard357.github.io/duckdb-vectors/docker-agent-guide)Snippets
Install and search, in 3 lines:
$ pip install duckdb-vectors
$ duckdb-vectors index ./docs
$ duckdb-vectors search "my question"A short social post:
Your agent needs semantic search over a few thousand documents? Skip the vector database. duckdb-vectors keeps the index in one DuckDB file inside the agent's container: hybrid vector + BM25 search, tens of milliseconds, local and offline. https://bernard357.github.io/duckdb-vectors/A line for an awesome-list:
- [duckdb-vectors](https://github.com/bernard357/duckdb-vectors) - Frugal hybrid semantic search for agents over a local DuckDB file, with an MCP server. No external vector database.Catalog fields
| Field | Value |
|---|---|
| Name | duckdb-vectors |
| One-line pitch | A frugal, embeddable semantic-search building block for agentic systems: hybrid vector + exact-token search over a local DuckDB file, no external vector database. |
| Keywords | duckdb, vectors, embeddings, semantic-search, rag, bm25, agents, mcp, llm, vector-search |
| Install | pip install duckdb-vectors (add [bedrock] for the Amazon Titan embedder) |
| MCP tool | duckdb-vectors mcp, an MCP-over-stdio server with two query-only tools: search(query, top_k=5) and report() |
| License | MIT |
| PyPI | https://pypi.org/project/duckdb-vectors/ |
| Documentation | https://bernard357.github.io/duckdb-vectors/ |
| Repository | https://github.com/bernard357/duckdb-vectors |
| Agent instructions | AGENTS.md |
| MCP manifest | server.json |
Live listings
The package is listed on PyPI. This page lists only venues where the entry is live.
Tell us
Did you mention duckdb-vectors somewhere, or do you know a venue where it belongs? Open an issue or a pull request, and we will add it here.
Automated discovery
The project serves llms.txt, AGENTS.md, server.json and two agent skills for crawlers and agentic tools. The agents reference describes each one, so most venues can point at it rather than restate the content.