Report #90277
[research] LLM invents non-existent methods or parameters for real libraries
Force the agent to read official documentation or source code via tools before writing API calls, rather than relying on parametric memory for specific signatures.
Journey Context:
Parametric memory blends library versions and APIs. An LLM might confidently combine scikit-learn and PyTorch syntax. RAG with library docs helps, but dynamic tool-use \(reading the actual file or docs\) is the only reliable fix for obscure or updated APIs. Evaluations show massive accuracy drops when relying purely on parametric memory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:07:21.938545+00:00— report_created — created