Normalized for Mintlify from
knowledge-base/neurigraph-memory-architecture/hyperthyme-memory-framework/hyperthyme-technical-overview.mdx.Neurigraph Hyperthyme Artificial Memory Framework
Technical Overview for AI Practitioners
By Oxford PierpontAbstract
Hyperthyme is a persistent memory architecture for large language models that addresses the fundamental limitations of context windows and session-based interactions. Unlike existing approaches that rely on summarization and extraction (which inevitably lose information), Hyperthyme implements a complete archival system with intelligent retrieval—ensuring that nothing discussed is ever truly forgotten. The architecture combines three complementary systems: a Knowledge Graph for structural navigation, a RAG database for semantic matching, and complete conversation archives (Recall Files) as the source of truth. This layered approach enables efficient retrieval from arbitrarily large memory stores while preserving verbatim access to original content. This document outlines the architectural philosophy, technical implementation, and differentiation from existing memory solutions.The Problem Space
Context Windows Are a Bandaid
The industry’s response to memory limitations has been to expand context windows:
This trajectory treats context as an input buffer rather than addressing the fundamental issue: LLMs have no persistent state across sessions. A 1M token context window doesn’t help when the conversation ended yesterday.
Current Memory Approaches Fall Short
Summarization-Based Memory (Mem0, MemGPT, etc.) These systems extract “memories” from conversations—facts, preferences, decisions—and store them in compressed form. Limitations:- Summarization is lossy by definition
- The summarizer decides what’s important (often wrong)
- Original context is discarded
- No access to exact wording, code blocks, or nuanced discussions
- Conflicts arise when new information contradicts old summaries
- No structural understanding of relationships between topics
- Poor performance on exact-match queries
- Retrieval noise increases with corpus size
- No distinction between routine and significant content
- Expensive to search at scale without pre-filtering
- Quickly exceeds context limits
- Wastes tokens on irrelevant history
- No intelligent selection of what to include
- Scales terribly
The Real Requirement
Users don’t want AI that “kind of remembers” or “has a general sense.” They want to say:- “What exact code did you give me for the authentication flow?”
- “When did I decide to pivot the product strategy, and what was my reasoning?”
- “Find that document we created about the Q3 roadmap.”
- Complete preservation — Nothing is lost to summarization
- Intelligent retrieval — Finding the right memory without searching everything
- Structural organization — Understanding relationships between topics
- Temporal awareness — Knowing when things happened and what supersedes what
- Distinction of significance — Separating defining moments from routine exchanges
Hyperthyme Architecture
Design Philosophy
Summaries are indexes, not storage. Hyperthyme inverts the typical approach. Instead of storing compressed memories with optional links to sources, we store complete archives with compressed indexes for retrieval.System Components
Recall Files: The Source of Truth
A Recall File is created every ~50,000 tokens, containing:
Why 50K tokens?
- Fits within retrieval budget for most models
- Large enough to contain coherent topic coverage
- Small enough for granular retrieval
- Represents ~1-3 substantial conversations
Knowledge Graph Structure
The Knowledge Graph provides hierarchical organization of user context:- Project: Major work streams
- Topic: Subjects within projects
- Concept: Abstract ideas that span projects
- Entity: People, companies, products mentioned
- Recall File: Leaf nodes linking to archives
contains: Hierarchical relationshiprelates_to: Semantic connectiondiscussed_in: Links concepts to Recall Filessupersedes: Temporal versioning (newer replaces older)
RAG Layer: Semantic Search Within Scope
The RAG database contains embeddings of summaries only, not full transcripts. This keeps the vector space manageable and search performant. Search is always scoped:Defining Memories: The Milestone Index
Defining Memories are a separate, always-warm index of significant moments: Detection Triggers:
Structure:
- “When did I decide X?” → Direct lookup, instant response
- “What major things happened this quarter?” → Timeline query
- “Show me all my product decisions” → Filtered query by type
Retrieval Cascade
Queries flow through a multi-stage retrieval cascade, with each stage narrowing the search space:
Even with millions of total Recall Files, retrieval remains fast because each stage dramatically reduces the candidate set.
Storage Tiering
Hot / Warm / Cold Model
Model Agnosticism
Hyperthyme operates as middleware, independent of the underlying LLM:Comparison with Existing Solutions
Key Differentiator:
Hyperthyme is the only system that guarantees nothing is lost. Other systems trade fidelity for efficiency. We achieve efficiency through intelligent indexing while maintaining complete fidelity in storage.
Implementation Considerations
Embedding Strategy
Embed summaries, not transcripts:- Keeps vector space manageable
- Summaries are semantically dense
- Full transcripts retrieved on-demand
Token Budget Management
When injecting memories, respect model limits:Concurrent Access
Multiple sessions may access the same user’s memory:- Recall File writes use append-only logs
- Knowledge Graph updates use optimistic locking
- Vector DB supports concurrent reads
Privacy and Security
- All user data is scoped by user_id
- No cross-user data leakage
- Encryption at rest for Recall Files
- Access tokens required for all operations
Performance Targets
Scaling Considerations
Future Directions
Multi-User Memory Sharing
Teams could share memory contexts while maintaining individual privacy boundaries.Memory Compression Over Time
Old memories could be progressively summarized while maintaining archive links.Proactive Memory
System suggests relevant memories before being asked.Cross-Application Memory
Single memory layer serving multiple AI applications (chat, coding assistant, writing tool).Conclusion
Hyperthyme addresses the memory problem not by trying to make AI “smarter” about what to remember, but by ensuring nothing is forgotten and retrieval is intelligent. The architecture recognizes that:- Storage is cheap; losing information is expensive
- Summarization is inherently lossy
- Users want verbatim access to past content
- Intelligent indexing beats brute-force search
- Structural organization enables efficient navigation at scale
Neurigraph Hyperthyme Artificial Memory Framework
By Oxford Pierpont For technical inquiries: [To be added]
Repository: [To be added]