Library

ContRAG

RAG engine that introspects your database schema and builds an entity relationship graph. Powers Dhaniverse's AI NPCs.

Overview

RAG engine that introspects your database schema at runtime, builds an entity relationship graph, and powers Dhaniverse's adaptive AI NPCs.

Highlights

  • Introspects an existing database schema at runtime and builds an entity relationship graph, so retrieval follows real relationships instead of similarity alone.
  • Tracks per-user preferences across turns for personalized context retrieval.
  • Works across MongoDB, PostgreSQL, and vector stores, with a Rust core published to crates.io.

Reading

The entity-graph retrieval idea sits on top of a body of research I keep coming back to:

Tech stack