Skip to main content
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 Pierpont

Abstract

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
Vector-Only RAG Embedding all content and retrieving by similarity. Limitations:
  • 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
Session Concatenation Simply appending previous sessions to context. Limitations:
  • 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.”
This requires:
  1. Complete preservation — Nothing is lost to summarization
  2. Intelligent retrieval — Finding the right memory without searching everything
  3. Structural organization — Understanding relationships between topics
  4. Temporal awareness — Knowing when things happened and what supersedes what
  5. 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.
Navigate first, search second. At scale (millions of memories), even efficient vector search becomes slow and noisy. Hyperthyme pre-filters using structural navigation before applying semantic search. Preserve everything, retrieve selectively. Storage is cheap. Tokens are expensive. Store complete transcripts; inject only what’s relevant to the current query.

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
Folder Naming Convention:
This enables both programmatic parsing and human browsability.

Knowledge Graph Structure

The Knowledge Graph provides hierarchical organization of user context:
Node Types:
  • 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
Edge Types:
  • contains: Hierarchical relationship
  • relates_to: Semantic connection
  • discussed_in: Links concepts to Recall Files
  • supersedes: Temporal versioning (newer replaces older)
Graph Operations:

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:
Use Cases:
  • “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:
Complexity Analysis: Even with millions of total Recall Files, retrieval remains fast because each stage dramatically reduces the candidate set.

Storage Tiering

Hot / Warm / Cold Model

Warming Trigger: When a KG node is accessed, all Recall Files in that node’s neighborhood are warmed:
Cold Storage Transition: Background job runs nightly:

Model Agnosticism

Hyperthyme operates as middleware, independent of the underlying LLM:
API Contract:
MCP Integration: Hyperthyme exposes tools via Model Context Protocol:

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:
  1. Storage is cheap; losing information is expensive
  2. Summarization is inherently lossy
  3. Users want verbatim access to past content
  4. Intelligent indexing beats brute-force search
  5. Structural organization enables efficient navigation at scale
By combining complete archival storage with a multi-layer retrieval system (Knowledge Graph → Keywords → RAG → Transcript), Hyperthyme provides the memory infrastructure that current LLMs lack—without sacrificing the fidelity that users actually need.
Neurigraph Hyperthyme Artificial Memory Framework
By Oxford Pierpont
For technical inquiries: [To be added]
Repository: [To be added]