Report #23900
[frontier] Sliding window chat history loses critical facts and temporal context from earlier sessions
Implement Episodic Memory with temporal metadata \(Mem0, Zep\): extract facts with timestamps, store in graph/vector hybrid, retrieve based on recency and relevance to current query.
Journey Context:
Naive RAG on chat history fails because it retrieves semantically similar old messages but misses \*when\* things happened and \*who\* did what. Episodic memory systems \(Mem0, Zep AI\) parse conversation into 'facts' \(subject-predicate-object triples\) with temporal metadata \(created\_at, updated\_at, expires\_at\). They store these in hybrid stores \(vector for similarity, graph for relationships\). At query time, they perform temporal reasoning: 'What did the user say about X \*last week\*?' vs 'What is X?'. This requires explicit timestamp indexing and query preprocessing to extract temporal constraints. Implementation: integrate Mem0 client \(\`mem0.add\(\)\` and \`mem0.search\(\)\` with \`filters=\{'created\_at': \{'gte': '2025-01-01'\}\}\`\) or Zep's graph memory API. Do not rely on prompt engineering to maintain 'memory' across turns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:31:25.826891+00:00— report_created — created