Docs
TriviumDB, from model to durable writes.
TriviumDB is an AI-native embedded database that keeps vectors, graph relations, and JSON payloads addressed by one durable node ID. Use these notes as the conceptual path into the engine.
Choose the binding that matches your agent runtime.
- Python
pip install triviumdb - Node.js
npm install triviumdb - Rust
cargo add triviumdb
Get started
Guides
- Best practices Data modeling, performance tuning, transactions, TQL patterns and pitfalls. 中文
- Document retrieval Find documents and return ranked evidence with source spans and revisions. 中文
- Document ingestion Parse sources, map extracted text back to the original and publish large documents in batches. 中文
- Named graphs Share nodes across graphs while keeping memberships, revisions and edges distinct. 中文
- Database migration Upgrade a historical database into a new directory with the external migration tool. 中文
- Resource runtime Shared quotas, maintenance reserves, worker pools and instance diagnostics. 中文
- Shutdown, snapshots and recovery Close requests, bounded waits, consistent snapshots, verification and restore. 中文
- Embedded Console Host the Console RPC on an already open database, sharing its instance and file lock. 中文
- Hook development Six pipeline hook points, C/C++ FFI plugins, Rust hooks and pipeline diagnostics. 中文
- tdb CLI Commands, REPL and TUI modes, import and export, repair and compaction. 中文
Reference
- API reference Every Python, Node.js and Rust API with parameters and return types. 中文
- TQL reference FIND, MATCH and SEARCH syntax, WITH pipelines, Prepared TQL and the grammar. 中文
- Features in depth Architecture, storage engine, index strategy, graph retrieval and crash recovery. 中文
- QuIVer index Automatic thresholds, SM-L2 navigation, memory model and tuning. 中文
- Pelorus hyperbolic index Search fixed-curvature Poincaré ball embeddings by geodesic distance. 中文
- SDK compatibility Supported Rust, Python and Node.js interfaces and their compatibility boundaries. 中文
- Error contracts Stable error codes, request context and write outcomes across language bindings. 中文
Internals
Release notes
0.9.4 Changes, migration notes and compatibility for this release.Docs for v0.9.4