Why do LLMs hallucinate and how do you reduce hallucinations?
medium- LLMs generate the most probable next token — they don't have a truth check.
- Hallucinations arise when the model lacks knowledge, when the prompt is ambiguous, or when it 'commits' to a plausible-sounding continuation.
- Mitigations: retrieval-augmented generation (ground in cited sources), lower temperature and constrained decoding, explicit 'say you don't know' instructions, tool use, self-consistency and verifier models, and evaluation with factuality benchmarks.