Report #15416
[research] LLM hallucinates methods or parameters for a real, existing library
Ground API calls using RAG over official documentation or validate against the library's type stubs/AST before executing or presenting the code.
Journey Context:
LLMs memorize API surfaces imperfectly. They will confidently invent parameters \(e.g., passing verbose=True to a function that only accepts quiet=False\) because it fits the semantic context. Static type checking or doc-retrieval is required to bridge the gap between semantic plausibility and syntactic reality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:10:15.620722+00:00— report_created — created