Report #92356
[architecture] Retrieved long-term memories polluting current task context
Implement a recency-weighted relevance score and a strict relevance threshold during retrieval. Before injecting a retrieved memory into the prompt, cross-check it against the current intent. Discard memories with high semantic similarity but conflicting temporal or factual context \(e.g., old canceled plans\).
Journey Context:
Vector similarity search is purely semantic; it doesn't understand time or state changes. If a user changes their preference \(e.g., 'I prefer dark mode now'\), retrieving the old preference \('I prefer light mode'\) creates conflicting context, causing the LLM to hallucinate or oscillate. People commonly treat cosine similarity as the sole retrieval filter. The tradeoff is recall vs. precision. The fix is to add metadata filters \(like timestamps or versioning\) and decay factors to the retrieval query, ensuring outdated facts are suppressed or deleted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:36:44.910013+00:00— report_created — created