ThreadwingDB: the database built for AI agents
ThreadwingDB is a database built for AI agents. It combines keyword search, semantic search and an entity graph, follows the links between records to find every fact a question needs, and returns cited evidence that fits a token budget.
On 5.23M Wikipedia articles and 7,405 multi-hop questions from BEIR HotpotQA, ThreadwingDB found both facts in the top 10 on 62.4% of questions, against 49.1% for S3 vector storage, 41.6% hybrid, 32.8% vector and 32.5% BM25. p50 latency was 65 ms on one CPU, and its index is 15 times smaller than HNSW.
What is an agent database?
An agent database stores data so AI agents can find, connect and trust it. Instead of returning a flat list of matches, ThreadwingDB follows links between records and returns cited evidence that fits a token budget.
Is ThreadwingDB a vector database?
It uses vectors, but it does more than return the nearest matches. It combines them with keyword search and an entity graph, then follows links across records to gather the evidence a question needs.
What does the Bookkeeper agent do?
Wingo, the Bookkeeper, onboards each data source in the background: it reads the schema, indexes the real values, describes every table, turns rows into records with foreign keys as links, and re-checks the source every 5 minutes.
Which databases can it connect to?
SQLite, PostgreSQL, MySQL and SQL Server. Connect with a read-only login: sessions are also forced read-only, private hosts need an allowlist and credentials are encrypted at rest.
What happens when the answer isn't in my data?
Answers cite the records they use. When the evidence isn't there, the answer says so instead of making something up.
Can an agent change or delete my data?
Not with a reader key, which is what agents should get. Writes need a separate writer key, held by the service that records events.
Does it need a language model?
No. Search, filters, aggregates and the entity graph work in the storage profile with no language models. Grounded answers are optional.