Preface
Large language models can produce fluent and convincing answers while still being wrong. A fabricated citation, an invented API, an unsupported factual claim, or an incorrect piece of generated code can appear plausible enough to go unnoticed. This book focuses on reducing the gap between fluency and reliability.
Instead of treating hallucinations as a single prompt-engineering problem, this book approaches AI reliability as a process. You will learn why hallucinations occur, how to reduce them before they happen, how to verify AI-generated output, and how to design systems that detect and handle failures before they reach users. The book combines practical prompting techniques with retrieval-augmented generation (RAG), source-based ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access