Report #77045
[architecture] Placing critical retrieved memories in the middle of the context window, causing the LLM to ignore them
Apply the primacy and recency heuristic. Place the most critical retrieved memories at the very beginning or very end of the injected context, using less critical or structural information in the middle.
Journey Context:
LLMs exhibit a U-shaped attention curve; they attend strongly to the beginning and end of the context, but ignore information in the middle. When injecting retrieved memories, naive chronological or arbitrary ordering causes the agent to hallucinate or fail to use middle-placed facts. Reordering the retrieved chunks to put the highest-relevance scores at the edges of the context window maximizes retrieval accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:55:09.216964+00:00— report_created — created