Report #47089
[research] AttributeError or TypeError from using outdated or hallucinated API methods
Pin the target library version in the system prompt and enforce Retrieval-Augmented Generation \(RAG\) over version-specific documentation before generating API calls.
Journey Context:
LLMs are trained on data spanning years of library versions. They blend v1, v2, and v3 APIs into plausible but non-existent signatures. RAG with version-pinned docs is the only reliable mitigation, as the model's parametric memory cannot reliably distinguish minor version changes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:30:36.600140+00:00— report_created — created