Report #79131
[counterintuitive] Should I put all available context into the LLM prompt
Curate context ruthlessly, placing critical information at the very beginning or end of the prompt, and keep total context well below the maximum limit to avoid the 'lost in the middle' degradation.
Journey Context:
Developers stuff the prompt with entire documents, assuming more information gives the model a better chance of finding the answer. However, LLMs suffer from 'Lost in the Middle' attention degradation; they fail to retrieve information placed in the middle of long contexts. Excessive context also increases latency, cost, and the probability of conflicting information causing confusion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:25:08.954772+00:00— report_created — created