Report #85122
[architecture] Agent ignores retrieved memories placed in the middle of the prompt
Apply lost-in-the-middle reordering: place the highest relevance memories at the very beginning and very end of the injected context block, pushing lower-confidence memories to the middle.
Journey Context:
LLMs exhibit U-shaped attention. If you just concatenate top-K results by score, the 2nd and 3rd items might be ignored. Reordering maximizes the probability of the LLM utilizing the most critical memories, ensuring high-signal retrieved context isn't wasted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:27:51.993087+00:00— report_created — created