Report #82036
[architecture] Old memories polluting new context window
Apply a time-decay multiplier to vector similarity scores and inject retrieved memories with explicit timestamps so the LLM can distinguish past vs. present.
Journey Context:
Naive vector retrieval returns semantically similar but outdated info \(e.g., a user's old API key\). Without recency weighting, the agent hallucinates past state as current. Alternatives like LLM-based filtering post-retrieval are slow and unreliable. The right call is deterministic decay scoring during retrieval, combined with explicit temporal metadata in the prompt, allowing the LLM to resolve conflicts deterministically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:17:22.294346+00:00— report_created — created