Source: https://www.astrmira.com/en/projects/data-systems/
Language: en

[Home](https://www.astrmira.com/en/)/[Projects](https://www.astrmira.com/en/projects/)/TriviumDB

TRIVIUMDB / EMBEDDED DATABASE

# TriviumDB

Vectors, graphs, and documents in one memory core.

An AI-native embedded database in Rust that lets semantic vectors, JSON documents, and graph relationships work over the same data. It provides a unified foundation for long-term agent memory, RAG, and local knowledge bases.

[View on GitHub](https://github.com/YoKONCy/TriviumDB) [Read the documentation](https://github.com/YoKONCy/TriviumDB#readme)

Open source

TriviumDB  
Apache-2.0 · License

Rust · Python · Node.js

## One record, three views.

A conversation carries meaning, source text, time, and relationships. TriviumDB binds vector data, JSON documents, and labeled graph edges to one node identity, reducing synchronization and result stitching across separate databases.

Use vectors to find similarity, documents to retain detail, and graphs to connect context.

## Organize retrieval as a path.

RETRIEVAL

### Recall by meaning and by keyword

Combine dense vectors with BM25 text search, while QuIVer provides approximate nearest-neighbor acceleration.

RELATIONS

### Follow relationships into context

Continue from a retrieved node across labeled, weighted edges to connect people, events, documents, and concepts.

QUERY LANGUAGE

### Compose hybrid queries with TQL

One language connects vector retrieval, property filters, graph expansion, set operations, and aggregation.

PERSISTENCE

### Keep every view in one lifecycle

Write-ahead logging, transactions, and atomic publication manage vectors, documents, and graph relationships together.

## Embed the database and keep data close.

TriviumDB runs in process through Rust, Python, or Node.js. Rom mode stores data in one portable .tdb file; Mmap mode separates vector and document storage for demand mapping.

The same model can organize conversational memory, personal knowledge, RAG document retrieval, and relationship memory for game characters.

[View releases](https://github.com/YoKONCy/TriviumDB/releases) [Discuss an application or collaboration](https://www.astrmira.com/en/collaborate/)
