Report #27132
[counterintuitive] Model fails to retrieve information located in the middle of a large context window
Restructure context so critical instructions and data are at the very beginning or the very end of the prompt. Use RAG to shrink context size rather than dumping entire files into the middle of a prompt.
Journey Context:
When a coding agent searches a massive file and injects it into the prompt, it assumes the model reads it uniformly. Research shows LLMs suffer from 'Lost in the Middle' degradation; their retrieval accuracy is high at the extremes but drops significantly in the middle of the context. This is a fundamental attention mechanism limitation, not a prompt clarity issue. Re-prompting or asking 'are you sure?' won't fix it; repositioning the data will.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:56:19.585432+00:00— report_created — created