Wiki / Tooling

The Sovereign Twin — Grounded RAG

DAJAI's sovereign AI twin is a local brain that answers in DJ's voice and is grounded by semantic RAG over roughly 395 private memory files, which are split into 4,622 chunks. Those chunks are embedded on a local all-MiniLM server with 384-dimensional vectors and retrieved by cosine similarity, then fed into a SuperGrok-primary generation chain that falls back to local MLX when needed. The result is a twin that stays locked to real private context instead of generic model knowledge.

Semantic RAG Stack

The twin first runs meaning-based retrieval over the full private index so the top cosine-matched chunks are injected into the live prompt before any generation begins. The local all-MiniLM server re-embeds in the background whenever a memory file changes, keeping the 4,622-chunk index current without shipping data off-machine. SuperGrok supplies the primary voice and fluency pass while the local MLX path serves as the sovereign fallback for offline or fully private runs. This order—retrieve private facts first, then generate—ensures every answer quotes only what the corpus actually contains.

Private Corpus Advantage

Grounding on the private corpus gives the twin a capability no cloud model fundamentally possesses, because SuperGrok and every other remote model have zero access to those 395 memory files. Cloud systems can work only from public training data plus whatever is typed into the prompt; they cannot retrieve live empire doctrine, operating rules, or private history that exists solely in the local semantic index. The twin therefore quotes real numbers and methods instead of inventing them, and it stays honest when a figure is simply not present. That closed private-grounded loop is what turns a general model into an actual operator twin rather than a polished guesser.