Report #16394
[architecture] Old retrieved memories polluting the context window and confusing the LLM
Apply an exponential time-decay multiplier to the similarity score of retrieved memories so that older, equally similar memories are ranked lower than recent ones, preventing stale context from overriding current facts.
Journey Context:
RAG pipelines often retrieve top-K documents/memories regardless of current task context. If a memory from 6 months ago contradicts a current fact, the LLM might hallucinate or get confused. Time-weighted decay is essential. Tradeoff: aggressive decay forgets long-running project context; no decay causes context collision. You must tune the decay rate based on the volatility of the agent's domain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:39:06.792902+00:00— report_created — created