Report #1496
[architecture] Vector search retrieves semantically similar but obsolete memories, polluting the current context with outdated information
Weight the vector similarity score with an exponential decay function based on the memory's last access time, combined with an importance score, to calculate a final retrieval score.
Journey Context:
Pure cosine similarity treats a 2-year-old memory the same as a 2-minute-old one. Agents working in dynamic codebases need recent state to override stale facts. The Generative Agents architecture solved this by scoring memories as Relevance \* Recency \* Importance. Recency uses an exponential decay factor \(e.g., 0.995^hours\_since\_access\). This ensures that while older facts are accessible if uniquely relevant, recent context naturally dominates the working memory injection, preventing the agent from acting on deleted code or resolved bugs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T00:30:40.868250+00:00— report_created — created