n4nAI

Topic

Hallucination in LLMs

11 posts on hallucination in llms — part of glossary on the n4n AI blog.

11 postsGlossaryAll posts
GlossaryAnalysis

Why do LLMs hallucinate? The technical reasons

A deep technical breakdown of why LLMs hallucinate, covering training objectives, probability distributions, and architectural constraints that make fabrication inevitable.

7 min read
GlossaryHow-to

How to reduce hallucinations with RAG

A step-by-step guide to building a RAG pipeline that measurably reduces LLM hallucinations, with runnable code for retrieval, reranking, and evaluation.

5 min read
GlossaryHow-to

How to detect AI hallucinations in production

A step-by-step guide to detecting LLM hallucinations in production systems, from ground truth construction to online monitoring with runnable code.

4 min read
GlossaryDefinition

Hallucination vs confabulation: is there a difference

A precise technical distinction between hallucination and confabulation in LLMs, with concrete examples and engineering implications for building reliable systems.

6 min read
GlossaryDefinition

Hallucination in code generation: when AI invents APIs

Understand hallucination in AI code generation — why models invent fake APIs, how to detect it, and practical strategies to prevent broken code from reaching production.

5 min read
GlossaryDefinition

Hallucination benchmarks: how models are scored

A technical explainer of hallucination benchmark scoring models — how they work, what they measure, and why they matter for production LLM systems.

8 min read
GlossaryDefinition

Grounded generation: reducing hallucination with context

Grounded generation ties LLM outputs to verified context, reducing hallucination. Learn how it works, why it matters, and common pitfalls to avoid.

6 min read
GlossaryComparison

GPT-4 vs Claude: which hallucinates less

A technical comparison of GPT-4 and Claude hallucination behavior across coding, reasoning, and retrieval tasks with practical guidance for model selection.

5 min read
GlossaryDefinition

Citation hallucination: when AI invents fake sources

Understand AI citation hallucination — when models fabricate plausible but nonexistent sources — with causes, detection strategies, and mitigation techniques for production systems.

7 min read
GlossaryAnalysis

Can AI hallucinations ever be fully eliminated

A practitioner's analysis of whether LLM hallucinations can be fully eliminated, examining root causes, mitigation strategies, and fundamental limits.

5 min read
GlossaryDefinition

AI hallucination explained: why LLMs make things up

A practitioner's breakdown of why LLMs hallucinate — the mechanism, the risks, a concrete failure mode, and what engineers get wrong about mitigation.

7 min read