Report #21038
[architecture] Old context and memories polluting new answers
Implement relevance scoring combined with exponential recency decay, and filter retrieved memories by timestamp before injecting them into the prompt.
Journey Context:
Agents commonly dump the top-K vector results into the prompt. If K is high, old contradictory information overrides the current session's state. Pure recency bias \(sliding window\) forgets important long-term facts. Exponential decay allows rare but critical old facts to survive if their semantic similarity is extremely high, while suppressing irrelevant old chatter.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:43:34.668507+00:00— report_created — created