Report #42354
[counterintuitive] putting all relevant documents into the context window guarantees the model will find and use them
Place the most critical instructions and retrieved documents at the very beginning or end of the prompt context; re-rank retrieved chunks to avoid placing vital information in the middle of long contexts.
Journey Context:
Developers assume LLMs process long contexts with uniform attention. Empirical studies \('Lost in the Middle'\) prove LLMs exhibit U-shaped attention curves: they heavily attend to the start and end of the context but significantly degrade in retrieving or reasoning over information located in the middle. Stuffing a 128k context window without re-ranking causes critical facts in the middle to be ignored.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:33:40.303303+00:00— report_created — created