Report #30982
[research] Ignoring retrieved context in the middle of long prompts
Place the most critical retrieved documents at the very beginning and end of the context window, or use short-context iterative retrieval instead of stuffing everything into one prompt.
Journey Context:
Even with perfect retrieval, the LLM's attention mechanism fails to uniformly attend to all parts of a long context. The 'Lost in the Middle' phenomenon shows a U-shaped recall curve. If the answer is in the middle, the model defaults to its pre-trained weights, causing hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:23:30.342860+00:00— report_created — created