Skip to main content

RAG vs Memory

Traditional RAG (Retrieval-Augmented Generation) retrieves documents similar to a query. Hindsight provides structured memory with temporal reasoning, entity understanding, and belief formation.

Capability Comparison

CapabilityRAGHindsight
Search strategySemantic similarity onlySemantic + keyword + graph + temporal
Multi-hop reasoningLimited to retrieved chunksGraph traversal across entity relationships
Temporal queriesKeyword matching ("spring")Date parsing and range filtering
Entity understandingNoneEntity resolution, observations, co-occurrence
Belief formationStatelessOpinions with confidence scores that evolve
DispositionNone3 traits (skepticism, literalism, empathy) influence interpretation

Architecture Comparison

RAG

StepOperation
1Embed query
2Vector similarity search
3Return top-k chunks
4Generate response

Single retrieval strategy. No state between queries.

Hindsight

StepOperation
1Parse query (extract temporal expressions, entities)
2Execute 4 parallel retrievals: semantic, BM25, graph, temporal
3Fuse results with RRF
4Rerank with cross-encoder
5Apply disposition traits
6Generate response

Multiple retrieval strategies. Persistent state across sessions.

Example Scenarios

Multi-Hop Reasoning

Stored facts:

  • "Alice is the tech lead on Project Atlas"
  • "Project Atlas uses Kubernetes"
  • "Kubernetes cluster had an outage Tuesday"

Query: "Was Alice affected by recent issues?"

SystemResult
RAGRetrieves facts about Alice only (no semantic similarity to "issues")
HindsightTraverses Alice → Project Atlas → Kubernetes → outage via entity links

Temporal Queries

Stored facts with timestamps:

  • March: "Alice started microservices migration"
  • April: "Alice completed auth service"
  • October: "Alice focusing on performance"

Query: "What did Alice do last spring?"

SystemResult
RAGReturns all Alice facts regardless of date
HindsightParses "last spring" → March-May, filters to that range

Entity Understanding

Stored facts about a user across sessions:

  • "Pro subscription"
  • "Mobile app crashes in settings"
  • "Switched to annual billing"
  • "Desktop app working fine"

Query: "What do you know about my account?"

SystemResult
RAGLists disconnected facts
HindsightReturns synthesized entity observations: subscription status, billing, known issues

Belief Evolution

Week 1: User struggles with async Python, succeeds with threads Week 3: User asks about asyncio, implements async database calls

SystemBehavior
RAGNo memory of progression
HindsightForms opinion "user prefers sync" (0.7) → updates to "user growing comfortable with async" (0.6)

When to Use Each

Use CaseRecommended
Document Q&A over static corpusRAG
Search with no temporal requirementsRAG
AI assistants with persistent memoryHindsight
Applications requiring entity trackingHindsight
Systems needing consistent dispositionHindsight
Temporal queries ("last month", "in 2023")Hindsight