Report #15068
[research] LLM answers a prompt using parametric memory instead of the provided retrieved context, leading to outdated or contradictory information
Prefix the system prompt with a strict grounding constraint: 'Answer using ONLY the provided context. If the context does not contain the answer, state I don't know based on the provided context.'
Journey Context:
LLMs have strong priors from their pre-training data. If the retrieved context conflicts with common pre-training knowledge, or if the context is placed far from the generation token, the model ignores it. Simply providing context doesn't guarantee grounding. Explicit negative constraints force the model to attend to the context window over its weights.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:10:32.310409+00:00— report_created — created