Normalized for Mintlify from
knowledge-base/neurigraph-memory-architecture/legacy-aiConnected-brain.mdx.Brain by aiConnected: Architecture Specification
Version: 2.0Date: January 20, 2026
Author: Bob / aiConnected, LLC
Executive Summary
Brain by aiConnected is a three-dimensional cognitive memory architecture that enables AI systems to accumulate, organize, and retrieve knowledge across conversations and platforms. Unlike traditional flat memory systems, Brain uses a hierarchical structure inspired by human cognition: a navigable Knowledge Graph for semantic relationships, per-node Index Files for precision targeting, topic-specific RAG databases for contextual retrieval, and complete conversation transcripts for full recall. This architecture solves the fundamental limitation of current AI systems: the inability to remember, learn, and improve over time without retraining.Core Architecture Overview
Layer Specifications
Layer 1: Knowledge Graph (Semantic Navigation)
The Knowledge Graph is the semantic scaffold of the Brain. It organizes knowledge into a three-tier hierarchy: Hierarchy Structure:
Node Properties:
Layer 1.5: Index Files (Precision Targeting)
Purpose: Index Files are lightweight metadata manifests attached to each Knowledge Graph node. They enable the system to determine relevance before warming any memories, dramatically reducing computational cost and latency. Why Index Files Matter: Without indexes, every query would need to warm entire nodes or search all RAG databases to determine relevance. With indexes, the system performs a near-zero-cost lookup first, then surgically warms only the specific memories needed. Index File Structure:
Index Threshold Rules:
Layer 2: Node-Specific RAG Databases (Contextual Retrieval)
Each Topic node contains its own vector database storing embedded summaries of conversations. This isolation ensures:- Searches are scoped to relevant knowledge domains
- Embeddings cluster around semantically similar content
- Cross-contamination between unrelated topics is eliminated
Layer 3: Recall Files (Verbatim Transcripts)
Recall Files are the complete, unmodified conversation transcripts. They serve as the source of truth when the AI needs full context beyond what summaries provide. Recall File Structure:Search Flow: Index-Guided Precision Retrieval
Query Example
User: “Hey, can you tell me about that product I was looking for?”Step-by-Step Flow
Step 1: Knowledge Graph Navigation The system identifies likely parent nodes based on the query term “product”:
Step 5: RAG Search + Recall Retrieval
Warm vs. Cold Memory: Index-Guided Optimization
The Problem with Node-Level Warming
Without indexes, warming requires loading entire nodes into context:Index-Guided Precision Warming
With indexes, the system warms surgically:Cost Comparison at Scale
At 1M users × 10 queries/day:
Sub-Node Architecture
Definition
A sub-node is a cluster of smaller topics within a larger topic. Sub-nodes allow unlimited depth while maintaining search efficiency through cascading indexes.Example: Sales Node Hierarchy
Sub-Node Creation Rules
Index Update Protocol
Real-Time Updates (On Memory Creation)
When a new memory is stored:- Append to index - Add memory to relevant node’s index
- Update counts - Increment
memory_countandtotal_memory_count - Extend keywords - Add new keywords if novel terms detected
- Update date range - Extend
newesttimestamp
Batch Updates (During Sleep Cycles)
During the 2-hour sleep cycle:- Cleanup - Remove deleted memory references
- Recompute keywords - Regenerate from current memories
- Optimize summaries - Update node summaries based on new patterns
- Prune stale entries - Archive indexes for nodes with no activity in 90+ days
Defining Memories
Not all memories are equal. Defining Memories are flagged moments representing decisions, milestones, or turning points.Detection Triggers
Defining Memory Structure
Why Separate Defining Memories?
When someone asks “When did I decide to start this project?” they shouldn’t have to search through 10,000 conversations. Defining Memories provide instant access to pivotal moments.Technical Implementation Notes
Database Schema (PostgreSQL)
Index File Storage Options
Recommended: Store in PostgreSQL JSONB with Redis cache for frequently accessed indexes.
Privacy & Security
User Data Isolation
- Each user’s Brain is completely isolated
- No cross-user data access
- Encryption at rest and in transit
Index File Security
Index files contain metadata only, never raw conversation content. Even if exposed, they reveal only:- Topic names
- Keyword lists
- Memory counts
- Date ranges
Appendix: Comparison to Existing Systems
Version History
Brain by aiConnected — Connecting all AIs on the memory layer.