Unimatrix treats memory as an intelligence pipeline rather than a simple database write. This page details how context flows from AI clients into persistent memory and back.
When an AI client or user sends context to Unimatrix, it passes through 7 distinct pipeline stages:
Context enters Unimatrix explicitly. In MCP clients (Claude Desktop, Cursor, Windsurf, Continue, VS Code), AI assistants invoke tools like unimatrix_store_memory. In web LLMs, the Manifest V3 browser extension captures highlighted text. Custom agents use the Fastify REST endpoints.
Raw transcripts are processed by the Librarian Intelligence Engine. It extracts atomic semantic triples (Subject → Predicate → Object), generates summaries, and calculates confidence scores. Local HuggingFace ONNX embeddings (BGE-small) create 384-dimensional vector representations.
Memories are assigned to hierarchical containers: Spaces → Locations → Memories. This prevents domain context from bleeding between unrelated projects.
The Veritas Lineage Graph uses Dempster-Shafer belief mass tracking to compare new facts against existing beliefs. If a fact contradicts previous entries, belief mass shifts without erasing historical lineage.
Memory content is encrypted at rest using application-layer AES-256-GCM with per-record HKDF key derivation and stored in PostgreSQL with pgvector. Dashboard composer memories can optionally be encrypted client-side in your browser.
When a query is received, Unimatrix executes hybrid retrieval: semantic vector search over pgvector, full-text keyword search over PostgreSQL tsvector, and graph traversal over Veritas belief edges. Results are re-ranked using adaptive reliability-weighted temporal decay (ARTD).
The formatted memory payload is delivered back to the requesting AI client via MCP streamable-http, extension overlay, or REST API response.
One saved piece of context — a fact, a decision, a preference, a snippet of a conversation. The atomic unit of memory in Unimatrix.
A top-level container that groups related memories, usually one per project, organization, or domain.
A themed directory or semantic container inside a Space (e.g., "Architecture Decisions", "API Specifications").
Everything an AI needs to know to be useful in a session. Unimatrix dynamically retrieves relevant context so you do not have to copy-paste background information.
The background process that normalizes, decomposes, categorizes, and cross-checks memories against past beliefs.
The Dempster-Shafer belief tracking graph that tracks evidence for/against facts and preserves historical supersession chains.
A numeric vector representation of text meaning. Unimatrix uses local HuggingFace ONNX embeddings (BGE-small) for fast vector retrieval in pgvector.
Model Context Protocol — an open standard enabling AI clients (Claude Desktop, Cursor, Windsurf, Continue) to invoke memory tools directly.