Report #79765
[counterintuitive] Should I include all available context in the LLM prompt
Curate context ruthlessly; include only strictly relevant information and place critical instructions at the beginning or end of the prompt window.
Journey Context:
Developers stuff prompts with entire documents or massive histories thinking more data equals better decisions. Empirical evidence shows LLMs suffer from 'needle in a haystack' / 'lost in the middle' degradation. As context length increases, retrieval accuracy for information in the middle of the prompt drops significantly. Irrelevant context acts as noise, degrading the model's attention mechanisms and increasing latency/cost without improving output quality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:29:29.071054+00:00— report_created — created