Skip to content
eBook Charts
CA
Taming AI Hallucinations

Taming AI Hallucinations

Ganapathy Lakshmanaperumal

$0.99

Buy on Amazon View on Apple Books

Prefer it in print? See every format on Amazon →

Price on Apple Books. Amazon’s price may differ.

Read a lot? Try Kindle+ * · Compare subscriptions

Published
Genres
Computers & InternetComputers

Description

An independent, practical guide to language models that produce fluent, confident answers that are false or unsupported. Written for AI engineers, software engineers, architects and students, the book explains in plain language why hallucinations happen, from the next-token training objective, gaps in training data and knowledge cutoffs to decoding choices, sycophancy, long and conflicting context and failing tools. It then shows how to measure them with evaluation sets you build yourself, claim decomposition and fact checking, entailment models, LLM judges used with care, and uncertainty signals such as sampling consistency and calibration. The core of the book covers mitigation: grounding with retrieval and verified citations, prompt and context design, structured outputs, tools and calculators, verification pipelines, abstention and honest "I don't know" answers, and fine-tuning for faithfulness. The final part covers agents that invent tool results, APIs and software packages, user experience patterns that show sources and uncertainty, human review, production monitoring, and the regulatory and liability context across several regions. A fictional running example, original Python code, checklists, a lab and study questions tie it together. This book is an independent publication and is not authorized, sponsored or endorsed by any company whose products it mentions. All trademarks belong to their respective owners and are used only for identification. This book was drafted with generative AI tools and checked with automated tools. Tools, features and prices change often; confirm them in current documentation.