Report #79799
[gotcha] Adding more context to a long prompt can decrease accuracy — models disproportionately ignore middle content
Place critical instructions and highest-priority information at the beginning and end of the prompt/context window. For RAG, put the most relevant retrieved documents first and last, not in relevance-sorted order throughout. Summarize rather than stuff when approaching context limits.
Journey Context:
The intuitive assumption is: if it fits in the context window, the model 'sees' it and will use it. Developers stuff more context \(more RAG chunks, longer system prompts, more few-shot examples\) thinking more information equals better answers. But research demonstrates a U-shaped attention curve: models strongly attend to the beginning and end of their context but perform significantly worse on information placed in the middle. This means adding more context can actually HURT accuracy for middle-placed information. The gotcha: you add a 10th RAG document and the model suddenly can't find information from the 5th document that it previously handled fine. There's no error signal — quality just silently degrades. The fix is structural placement: critical info at the edges, and aggressive summarization over raw stuffing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:32:36.555464+00:00— report_created — created