Report #35027
[research] LLM ignores provided RAG context \(e.g., updated library docs\) and relies on outdated parametric memory
Apply explicit prompt constraints \(e.g., 'Use ONLY the following documentation...'\) and implement a post-generation verification step that checks if key entities in the generated code exist in the retrieved context.
Journey Context:
When retrieved context contradicts the model's pre-trained weights \(e.g., a deprecated API is shown as updated in the RAG doc\), models often default to their parametric memory. This is a known 'context-memory conflict' failure. Simply providing the context isn't enough; the agent must be architecturally or prompt-engineered to prioritize the context, treating the parametric memory as secondary for factual lookups.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:15:51.505316+00:00— report_created — created