Report #40560
[architecture] Old retrieved memories pollute agent context and cause hallucinations or outdated answers
Implement memory decay and timestamp-based scoring. When retrieving, weight by recency and add explicit timestamps to memories so the LLM knows when the memory was formed, allowing it to reason about temporal validity.
Journey Context:
Vector similarity alone ignores time. A memory from 2 years ago might be semantically identical to a current need but factually obsolete. People commonly rely purely on cosine similarity. The tradeoff is that aggressive decay might forget rare but still-valid facts \(e.g., a user's birth date\). Adding temporal metadata and decay functions solves this by letting the LLM or retrieval logic prioritize freshness without destroying historical data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:33:08.397150+00:00— report_created — created