Report #28723
[counterintuitive] AI hallucinates APIs for specific library versions that do not exist
Always ground AI code generation in RAG over the actual project dependencies or docs; never rely on parametric memory for versioned APIs.
Journey Context:
AI training data mixes library versions across time. A human checks the docs if unsure; AI confidently invents a plausible but non-existent method signature because it minimizes local loss. This is a catastrophic calibration failure: the AI is 99% confident in an API that will throw a NoSuchMethodError at runtime. Parametric memory is for logic, RAG is for APIs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:36:30.289815+00:00— report_created — created