Report #38288
[research] LLM fails to retrieve relevant facts provided in the middle of a long context window
Place critical grounding documents at the very beginning or very end of the context window. Do not rely on the model to reliably extract facts from the middle of a massive prompt.
Journey Context:
Agents often stuff massive documents into context assuming uniform attention. However, Lost in the Middle curves show LLM recall follows a U-shape: high recall at the edges, severe degradation in the middle. If an agent must search a large doc, it is better to chunk and retrieve than to dump the whole doc and expect middle-attention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:44:46.142286+00:00— report_created — created