Report #91093
[counterintuitive] add more context or examples to improve LLM accuracy
Curate context ruthlessly and place critical information at the very beginning or end of the prompt window, as LLMs suffer from 'Lost in the Middle' degradation where mid-context information is largely ignored.
Journey Context:
Developers often stuff prompts with entire documents or dozens of few-shot examples, assuming more data gives the model more to work with. However, transformer attention mechanisms exhibit a U-shaped performance curve over long contexts. Information placed in the middle of a long prompt is often overlooked or forgotten, leading to worse performance than a shorter, highly focused prompt. Adding irrelevant context also dilutes the attention weights on the crucial facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:29:34.125067+00:00— report_created — created