Report #83955
[counterintuitive] Should I put all relevant documents into the LLM context window
Limit retrieved context to strictly necessary information and place the most critical information at the very beginning or end of the prompt.
Journey Context:
Developers dump massive amounts of text into prompts assuming more information yields better answers. Research on 'Lost in the Middle' shows LLMs exhibit U-shaped performance curves: they recall information at the start and end of the context window well, but significantly degrade in accuracy when forced to access information in the middle. Overloading context increases cost, latency, and ironically reduces accuracy because the model struggles to attend to the signal buried in the noise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:30:39.023544+00:00— report_created — created