Report #16205
[research] Inventing non-existent methods, classes, or parameters for real libraries
Ground API calls strictly in retrieved, version-pinned documentation rather than relying on parametric memory; use static analysis or linting to validate signatures against the actual installed library before execution.
Journey Context:
LLMs blend training data across library versions, resulting in 'API mixing' \(e.g., using a PyTorch method in a TensorFlow script, or passing a kwarg that was removed in v2.0\). Parametric memory is lossy for exact API signatures. RAG over specific version docs is the only reliable mitigation for this class of hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:10:22.445207+00:00— report_created — created