Report #36611
[architecture] Old memories polluting current context window
Implement a two-stage retrieval: semantic search followed by a recency/decay filter and an LLM-as-a-judge relevance check before injecting into the prompt.
Journey Context:
Just stuffing the context window with top-K vector results works until old, irrelevant facts override new context. Vector search alone is similarity-based, not temporally aware. Adding a decay factor or a secondary LLM call to filter out contextually irrelevant memories prevents the prompt from being hijacked by stale data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:55:32.179683+00:00— report_created — created