Hallucination: In this context, generating code that imports a non-existent library (name hallucination) or calls a non-existent function from a valid library (member hallucination)
Slopsquatting: A supply chain attack where malicious actors register packages with names frequently hallucinated by LLMs to compromise developers who copy-paste code
Typosquatting: Registering packages with names very similar to popular libraries (e.g., 'requests' vs 'request') to catch users who make typing errors
Sycophancy: The tendency of an LLM to agree with or adopt the user's premise (even if incorrect), such as using a fake library name just because the user requested it
Chain-of-thought: A prompting strategy instructing the model to generate intermediate reasoning steps before the final answer ('Let's think step by step')
RAG: Retrieval-Augmented Generation—enhancing model outputs by retrieving relevant documents (e.g., documentation) from an external knowledge base
AST: Abstract Syntax Tree—a tree representation of the abstract syntactic structure of source code, used here to parse imports and function calls