Report #94396
[architecture] LLM over-indexing on retrieved memories because they are placed at the prompt extremes
Inject retrieved memories in a dedicated middle section \(e.g., \) with explicit instructions to disregard them if they conflict with the immediate user query or current working state.
Journey Context:
LLMs suffer from lost-in-the-middle and primacy/recency bias. If old memories are at the top, they set a premise that the agent follows blindly. If at the bottom, they override the actual task. Isolating them with explicit conditional instructions mitigates blind adherence to stale context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:01:47.503306+00:00— report_created — created