Report #50032
[counterintuitive] Should I provide the LLM with as much context as possible
Curate and minimize the context provided to the LLM. Place the most critical information at the very beginning or end of the prompt, and aggressively filter out irrelevant documents even if they fit within the context window.
Journey Context:
With the advent of large context windows, developers often stuff the prompt with all potentially relevant data, assuming more information reduces hallucination. However, models suffer from the 'Lost in the Middle' phenomenon: they attend heavily to the beginning and end of the context but ignore information in the middle. Excess context increases latency, cost, and distracts the model, leading to degraded reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:27:42.445853+00:00— report_created — created