No server
Embedded package, no database service to operate.
HybridDB gives AI apps durable on-disk rows, keyword search, vector retrieval, local analytics, graph context, and repairable indexes without running Postgres + pgvector, Milvus, and ClickHouse for every local workload.
pip install hybriddb Embedded package, no database service to operate.
Persistent local data, not an in-memory cache.
Exact terms and semantic retrieval together.
Local aggregates, entities, and relationships.
HybridDB is for teams that need local search and retrieval inside an app, not another production database cluster to deploy, monitor, secure, and synchronize.
Use one embedded package instead of wiring a database server, vector service, analytics store, and sync jobs.
Store app data on disk in the customer environment, on-device, or next to the agent runtime.
Avoid running Postgres + pgvector, Milvus, and ClickHouse for local-first AI features that do not need a cluster.
Backups, SQL export/import, integrity checks, and reindexing make derived search state repairable.
Excellent for server-side app data. HybridDB is lighter when an embedded app needs rows, keyword search, vectors, analytics, graph context, and local repair tools without operating Postgres.
Excellent for distributed vector scale. HybridDB fits smaller local workloads where keyword matches, structured rows, and semantic search need to live together.
Excellent for large analytical systems. HybridDB gives local apps practical analytics over their own data without exporting into a warehouse pipeline.
No shade: we love those open-source projects and use them every day.
When you do need the details, the API stays concrete: create a table, insert rows, search, then verify or rebuild indexes.
pip install hybriddb
from hybriddb import HybridDB, LONGTEXT, TEXT
db = HybridDB("./my_data") db.create_table("docs", {
"title": TEXT,
"body": LONGTEXT,
})
db.insert("docs", {
"title": "Gmail OAuth bug",
"body": "Refresh token failed during sync",
}) from hybriddb import HYBRID
results = db.search(
"docs", "body", "gmail token refresh",
mode=HYBRID,
) db.export_sql("backup.sql")
report = db.check_integrity()
sizes = db.stats()
db.reindex("docs") HybridDB is not a pile of databases. It is a local data flow where SQLite owns truth and every retrieval layer can be regenerated from the write journal.
Agents and apps write ordinary structured records into SQLite-backed tables.
Every write is captured so secondary indexes can be replayed, repaired, and verified.
FTS5, ChromaDB, optional DuckDB, and graph tables are updated from the same local truth.
Keyword search, semantic recall, graph traversal, and maintenance APIs are exposed together.
Each component has a narrow job. The source data remains inspectable while retrieval, analytics, and graph projections evolve independently.
Source of truth for rows, schemas, transactions, and the repair journal.
Exact keyword retrieval for names, emails, titles, and high-signal terms.
Persistent vector collections for semantic recall over long text fields.
Optional columnar analytical queries via the hybriddb[analytics] extra.
SQLite-backed nodes and edges for provenance, entities, and dependencies.
SQL export/import, backup/restore, integrity checks, stats, vacuum, and reindex.
check_circleLong-running agent systems that need durable, searchable local state.
check_circleEmail caches and knowledge bases that need keyword and semantic retrieval.
check_circleApp-builder tables created and queried by agents at runtime.
check_circleLocal analytics over agent activity without exporting data.
check_circleEntity and provenance graphs for explaining why something was remembered.
No. It uses vector search as one layer, alongside rows, FTS, analytics, and graph context.
SQLite owns transactional app data. DuckDB is an optional local analytics mirror.
No. HybridDB is designed as an embedded local data layer for Python agent apps.
It is not a distributed OLTP database, hosted vector service, or hardened SQL sandbox.
Start with SQLite-shaped records, then add keyword search, semantic retrieval, optional analytics, graph context, and repairable indexes without introducing external infrastructure.
Install HybridDB