Report #16207
[research] Ignoring retrieved documentation context when it conflicts with parametric memory, especially if the context is in the middle of the prompt
Place critical retrieved grounding context at the very beginning or end of the prompt; explicitly instruct the model to strictly prioritize the provided context over its internal knowledge.
Journey Context:
Models suffer from 'Lost in the Middle' degradation. If a retrieved API doc contradicts the model's outdated training weight, the model often defaults to its weights. Positioning the context at the edges of the prompt window and using strong system prompts \('If the docs say X, do Y, even if you think otherwise'\) mitigates this grounding failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:11:19.793062+00:00— report_created — created