Skip to content

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:

text
Semantic search for agents, in one DuckDB file.

In 1 sentence:

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

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

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

Architecture

text
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?

text
3. Search is hybrid: an exact cosine scan fused with a BM25 exact-token scan through Reciprocal Rank Fusion.

Frequent questions

text
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?

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

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.

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 ​

markdown
[![Python](https://img.shields.io/pypi/pyversions/duckdb-vectors)](https://pypi.org/project/duckdb-vectors/)
[![PyPI](https://img.shields.io/pypi/v/duckdb-vectors)](https://pypi.org/project/duckdb-vectors/)
[![Tests](https://github.com/bernard357/duckdb-vectors/actions/workflows/integrate.yml/badge.svg)](https://github.com/bernard357/duckdb-vectors/actions/workflows/integrate.yml)
[![MCP](https://img.shields.io/badge/MCP-stdio-blue)](https://bernard357.github.io/duckdb-vectors/docker-agent-guide)

Snippets ​

Install and search, in 3 lines:

shell
$ pip install duckdb-vectors
$ duckdb-vectors index ./docs
$ duckdb-vectors search "my question"

A short social post:

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

markdown
- [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 ​

FieldValue
Nameduckdb-vectors
One-line pitchA frugal, embeddable semantic-search building block for agentic systems: hybrid vector + exact-token search over a local DuckDB file, no external vector database.
Keywordsduckdb, vectors, embeddings, semantic-search, rag, bm25, agents, mcp, llm, vector-search
Installpip install duckdb-vectors (add [bedrock] for the Amazon Titan embedder)
MCP toolduckdb-vectors mcp, an MCP-over-stdio server with two query-only tools: search(query, top_k=5) and report()
LicenseMIT
PyPIhttps://pypi.org/project/duckdb-vectors/
Documentationhttps://bernard357.github.io/duckdb-vectors/
Repositoryhttps://github.com/bernard357/duckdb-vectors
Agent instructionsAGENTS.md
MCP manifestserver.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.