Report #9013
[research] Hallucinated library versions or API parameters in generated code
Force retrieval-augmented generation \(RAG\) from official, version-pinned documentation and enforce structural citation rather than relying on parametric memory for specific version signatures.
Journey Context:
LLMs trained on mixed-version corpora often blend deprecated and current APIs \(e.g., standard library changes\). Parametric memory is lossy for exact signatures. RAG mitigates this but only if the retrieved context is strictly bounded and the model is penalized for deviating from the provided context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:08:35.348668+00:00— report_created — created