More context can add information and token cost. Whether it improves an answer depends on the task, the information included, and where relevant evidence appears. Treat context size as an experiment variable, not as a quality score by itself.
What the evidence shows
The Lost in the Middle study evaluates multi-document question answering and key-value retrieval. It reports that performance often peaks when relevant information appears near the beginning or end of a long input and can decline when the relevant material is in the middle. That is evidence of a position effect on the study's retrieval tasks. It does not show that every additional token reduces quality, that all models behave the same way, or that an arbitrary eviction order will improve a particular agent.
The practical question is narrower: for a task your system performs, does a candidate context policy produce answers that meet the same quality requirements while changing the measured usage or latency? A smaller prompt is useful only if it retains the evidence needed for the task.
Run a paired context experiment
Treat the following as a proposed experiment.
- Choose one representative task class and a fixed set of inputs. Save the source snapshot and record the current context assembly for each input.
- Define a control using the current context policy and one or more candidate policies that differ in a stated way, such as removing low-relevance retrieved passages. Change one context variable at a time.
- Hold the model version, system and user instructions, tools, decoding settings, source data, and task conditions constant. Generate and retain the actual answer for each task under each policy; do not score the retrieved context in place of the answer.
- Repeat runs enough to observe variation under the system's sampling behavior. Score answers against a task-specific rubric or verified expected result, and report the uncertainty around the quality comparison. Choose the number of repeats based on the precision the decision needs; there is no universal run count.
- Alongside answer quality, record observed input/output usage and end-to-end latency for each run. Reconcile usage with the provider's billing units if cost is part of the decision, and keep estimates distinct from billed amounts.
Compare results by task class as well as in aggregate. A context policy that preserves average quality may still fail on a high-consequence task. Before testing, define what quality difference would change the decision and which failures require a containment or review path.
Interpret the result without overclaiming
If answers meet the required quality under a candidate policy and measured usage or latency changes, the team has evidence for that task set and configuration. It has not established a universal context limit. If quality changes, inspect the examples and retrieved evidence to see whether the change came from missing information, position, conflicting material, or another difference in the test.
Repeated runs provide an estimate of how stable the observed quality result is under the chosen conditions; the scoring method and task sample still limit the conclusion. Report per-task failures and the scoring uncertainty instead of inferring that every included passage contributes equally.
Make context policy task-specific
Choose retention and eviction based on what a task needs, the provenance and authority of each item, and whether the item can be regenerated. A policy should preserve any item required to make or audit the current decision, and it should record what was omitted when that omission affects interpretation.
A context budget can bound input usage, but the budget does not prove relevance or answer quality. Pair it with retrieval evaluation and observe actual usage and latency. For a broader production context-assembly model, see Context Engineering for Production AI Agents.
The useful result is a measured tradeoff for a named task: which context policy met its quality requirement, what usage and latency it produced, and what failure cases remain. Expand that conclusion only after testing another task class or operating condition that could change the decision.