For the doctors who say "let me check." For the teachers who say "I don't know, but let's find out." For the engineers who say "I'm not sure; let's test it."
And for everyone who knows that admitting uncertainty is not weakness — it is the beginning of reliability.
In 2023 a lawyer in New York used ChatGPT to draft a legal brief. He submitted the brief to a federal court. The brief cited six cases. None of them existed. ChatGPT had invented them — complete with case names, citations, docket numbers, and quoted judicial opinions that sounded real but were entirely fabricated. The opposing counsel checked the citations. They found nothing. The judge ordered the lawyer to explain. He admitted he had used AI and had not verified the cases. He was sanctioned. The story was widely reported; it became a canonical example of AI "hallucination."
That story was shocking because it involved a lawyer and a court, but it is not unusual. AI systems today write medical summaries that cite non-existent studies. They produce news articles that quote people who did not say the things attributed to them. They answer customer support questions with policies the company does not have. They generate code that references functions that do not exist in the library. They answer factual questions confidently, fluently, and incorrectly.
They do not lie. Lying requires intent to deceive. They do what they were designed to do: produce fluent, plausible, statistically likely text in response to a prompt. When they do not know the answer, they produce an answer that looks like it could be right — because the system has no concept of "knowing" or "not knowing." It does not experience uncertainty. It does not feel doubt. It produces the most statistically plausible continuation of the text, and sometimes that continuation is fiction.
The problem is not that AI systems sometimes make things up. All systems make mistakes. The problem is that they make things up without signalling uncertainty, without knowing they are uncertain, and without any mechanism for deferring to a human or admitting they do not know. They are designed to produce answers, not to produce accurate assessments of their own epistemic limits. They are fluent without being self-aware; confident without being calibrated; responsive without being reliable.
This book is about how to build AI systems differently. It is about systems that know what they know, know what they do not know, communicate uncertainty honestly, defer to humans when they should, and earn trust through calibration rather than fluency. I call these honest bots.
An honest bot is not an AI that never makes mistakes. Such a system does not exist and will not exist for the foreseeable future. An honest bot is one that: - Knows the boundaries of its training, knowledge, and competence. - Assesses and communicates its confidence on every answer. - Says "I don't know" when it does not know, rather than guessing. - Cites sources for claims it makes. - Flags when a query is outside its area of expertise. - Knows when to defer to a human expert. - Does not invent facts, citations, or sources. - Admits when it has changed its mind or when new information invalidates prior answers. - Is designed around human agency, not human replacement. - Is transparent about its own nature: that it is a statistical model, not a knower.
This is not a book about AI alignment in the existential-risk sense (the long-term worry about superintelligent systems pursuing goals misaligned with human values). It is about a more immediate and practical problem: the AI systems we are deploying right now — customer service bots, medical assistants, legal tools, coding assistants, educational tutors, search engines, and conversational agents — are routinely deployed without basic epistemic honesty. They guess when they should admit ignorance. They are wrong but confident. They are being deployed into high-stakes contexts (medicine, law, finance, education, government) where calibrated uncertainty is not a nice-to-have but a safety requirement.
This book is for: - Engineers building AI systems, who want to design for honesty and calibration rather than raw fluency. - Product managers deciding where and how to deploy AI, who need to understand the failure modes and design appropriate safeguards. - Organizations adopting AI tools, who need to evaluate vendor claims and understand what "AI-powered" does and does not mean for reliability. - Policymakers thinking about regulation and standards for AI systems in high-stakes contexts. - Anyone who uses AI tools regularly and wants to understand why they fail the way they fail, and what good AI would look like.
The book is organized as follows: - Part I: The problem — why AI systems confabulate, why confidence is not correlated with accuracy, what hallucination is (and is not), and why fluency is mistaken for reliability. - Part II: Calibration — what it means for a system to know what it knows; confidence scoring; abstention and refusal; how to measure whether an AI system is well-calibrated. - Part III: Designing honest systems — retrieval-augmented generation, citation, source-grounded answers, confidence thresholds, human-in-the-loop, uncertainty in UI design, failure modes and guardrails. - Part IV: Honesty in specific domains — customer support, medicine, law, education, coding, search, public services; what honesty requires in each context. - Part V: Evaluation — how to measure honesty, how to test for hallucination, how to benchmark calibration, red-teaming for overconfidence. - Part VI: Governance and trust — when AI should not be used, how to set expectations with users, how to communicate limitations, the ethics of deploying uncalibrated systems. - Part VII: Building an honest bot — a practical architectural pattern for building honest AI systems from existing components. - Part VIII: The future of honest AI — why we build dishonest bots today and the path forward. - Part IX: Ethics and responsibility — the ethics of uncertainty, the honest engineer's obligations, asymmetric trust. - Part X: Industry perspectives — enterprise AI, government AI, AI in developing contexts.
The central argument is simple: honesty is a design property, not a philosophical aspiration. An AI system does not need consciousness, sentience, or a theory of mind to be honest about what it does and does not know. It needs to be architected, trained, evaluated, and deployed around principles of calibration, source grounding, uncertainty communication, and appropriate deference. The technology to build honest bots exists today. We are choosing not to build it because we have optimized for fluency, engagement, and the appearance of competence rather than for honesty, calibration, and real reliability. We can choose differently.
Large language models (LLMs) produce astonishingly fluent text. They can write essays, code, legal briefs, poetry, emails, technical documentation, and explanations that read as if they were written by a knowledgeable and articulate human. They produce this text by predicting the most statistically likely next token given the preceding context — a process that produces coherent, grammatical, well-structured language but does not involve knowing whether the content is true.
This is the fundamental design reality of current-generation AI: fluency is optimized directly (through training on trillions of tokens of human text), while accuracy is not directly optimized at all. A model is not rewarded during training for producing a true statement over a false but plausible-sounding statement. It is rewarded for producing text that resembles the text in its training corpus. When the truth is common and well-represented in training data, the model produces truth. When the truth is rare, nuanced, contradictory across sources, or absent from training data, the model produces the most fluent plausible-sounding text — which may be fiction.
This is not a bug to be fixed in the next model version; it is a structural property of how these systems work. Larger models hallucinate less than smaller models (they have seen more text and have stronger internal representations of facts), but they still hallucinate, and they often hallucinate more confidently because their fluency is higher.
The dangerous combination is fluency without calibration. A human who does not know something typically signals uncertainty in their language: "I think...", "I'm not sure, but...", "As far as I recall...", "I'd have to check...". A current-generation LLM does not do this unless explicitly instructed or architected to. It produces the same level of confidence and the same fluent tone for statements it knows well and for statements it is fabricating. A user cannot distinguish a correct answer from a fabricated answer by reading the response; the model does not distinguish them either.
"Hallucination" is the term commonly used for AI systems producing false content. It is a slightly misleading term — a hallucination implies perceiving something that is not there; an LLM is not perceiving anything. It is generating text based on statistical patterns. A more accurate term, borrowed from psychiatry, is confabulation: producing fabricated or distorted narratives without the conscious intent to deceive, often with apparent confidence and internal coherence. A confabulating patient is not lying; they genuinely believe the story they are telling, because the brain's fact-checking mechanisms are impaired. An LLM does not "believe" anything, but it generates text in a similar mode: coherent, confident, detached from veridical verification.
The philosopher Harry Frankfurt's concept of bullshit is also relevant. A liar knows the truth and deliberately conceals it; a bullshitter is indifferent to whether what they say is true or false. Their goal is not to mislead about facts but to produce an impression, to persuade, to sound good, to fill the space. LLMs are bullshit generators in Frankfurt's technical sense: they are optimized to produce acceptable, fluent, on-topic text, not to track truth. Training for helpfulness reinforces this — a model that says "I don't know" to every hard question is rated as unhelpful by human evaluators; a model that produces a plausible-sounding answer is rated as helpful, even if the answer is wrong.
These are not moral criticisms. An LLM is not a person; it does not have intentions, moral agency, or a duty of honesty. The people building and deploying LLMs do have those things, and the design choices that optimize for fluency over honesty are choices made by humans. If we build systems that are trained and fine-tuned to produce answers rather than calibrated uncertainty, we should not be surprised when they produce false answers confidently.
Hallucinations are not rare edge cases. They are common across every domain where LLMs are deployed:
Law. The New York lawyer case (invented cases) is the most famous but not unique. Legal AIs have been shown to cite non-existent statutes, misstate legal standards, invent regulatory requirements, and misquote case law. Because legal language is formal and formulaic, models produce very plausible-sounding fake citations.
Medicine. Clinical LLMs have invented drug interactions, fabricated study results, misstated dosing guidelines, and given confident wrong answers about diagnosis and treatment. In one 2024 study, a leading medical LLM produced incorrect or dangerous recommendations in 15–25% of complex clinical scenarios, with no signalling of uncertainty in most cases.
Code. Coding assistants frequently invent function names, APIs, library methods, and flags that do not exist. Because code is formal and compiles, these errors are usually caught quickly — but a busy developer who trusts the output and does not verify can spend hours debugging a hallucinated API.
Customer support. AI chatbots have told customers that refunds are available when they are not, that policies exist which do not, that products can do things they cannot, and that account issues have been resolved when they have not. The fluency and confidence of these responses leads customers to act on incorrect information.
Education. AI tutors have confidently explained mathematical concepts incorrectly, fabricated historical events, produced incorrect scientific explanations, and generated fake citations for papers. Students cannot easily distinguish accurate from inaccurate explanations.
Search. AI-powered search engines have summarized pages incorrectly, attributed claims to sources that do not make them, and produced confident answers to questions with no verified answer.
These failures are not all catastrophic — a customer support bot giving the wrong refund policy is frustrating but not life-threatening. Some of them are life-threatening (medical misinformation, legal errors in criminal cases). In every case, the core failure is the same: the system presented uncertain or incorrect information as confident and correct.
Human experts are not perfect at knowing the limits of their knowledge — far from it. Overconfidence bias is widespread; experts make mistakes; people are routinely wrong while convinced they are right. But humans have capabilities that current AI lacks:
These capabilities are imperfect. But they are the foundation of honest communication. When a human expert says "I'm not sure — let me check," or "this is outside my speciality; you should see a specialist," or "the evidence on this is mixed," that is honesty about the limits of knowledge.
AI systems do not have any of this by default. They do not feel doubt. They do not know what they do not know. They cannot introspect about their own competence. They do not learn calibration from feedback in the rich way humans do (though they can be fine-tuned to behave more cautiously). Calibration must be engineered from the outside, through architecture, training, evaluation, and interface design.
When my eldest son was five, she developed a persistent rash and fever that would not resolve. Our paediatrician examined her, ran basic tests, and looked at the results. He sat down and said: "I have three possibilities in mind. The most likely is a viral infection that will resolve in a week. The second is a mild bacterial infection that we can treat with antibiotics. The third is something more serious that I cannot rule out from what I'm seeing. I am going to give you antibiotics today because the risk of not treating a bacterial infection is high, but I am also referring you to a paediatric specialist because I am not confident enough in my diagnosis to tell you it is definitely the first thing. I'd rather be wrong and have a specialist look than tell you it's nothing and miss something."
He said "I don't know" clearly and without embarrassment. He recommended action while acknowledging uncertainty. He referred to a specialist rather than overstating his confidence. The referral turned out to be precautionary; it was the viral infection. But the episode demonstrated exactly what medical honesty looks like: calibrated confidence, differential diagnoses with probabilities, appropriate action under uncertainty, willingness to defer, and no pretence of certainty that does not exist.
I contrast this with the experience of a friend who described his symptoms to a medical AI chatbot in 2024. The bot gave him a single, specific diagnosis (a relatively rare condition), recommended a specific treatment, and did not mention alternative possibilities, differential diagnoses, or the need to see a doctor. He worried for three days before seeing his GP, who told him it was a common viral infection unrelated to the AI's diagnosis. The AI was wrong, and it was wrong with total, unqualified confidence. The AI did not say "this is one possibility" or "other diagnoses should be ruled out" or "please see a doctor." It diagnosed him, definitively, incorrectly.
The difference between our paediatrician and the medical AI was not that the paediatrician was more accurate (he said he was not sure) but that he was honest about his uncertainty. That honesty — the willingness to say "I'm not sure, this is what I think, let's get a second opinion" — is what makes human expertise reliable. AI will not be truly useful in high-stakes domains until it can replicate this kind of honesty, not just the appearance of knowledge.
A well-calibrated system is one where its stated confidence matches its actual accuracy. If a system says it is 90% confident in an answer, that answer should be correct approximately 90% of the time. If it says it is 50% confident, it should be right about half the time. If it says it is 99% confident, it should be wrong roughly once in a hundred predictions.
Human experts are imperfectly calibrated, but many domains have reasonable calibration: a doctor who says "I'm 80% sure this is bacterial" is right roughly 75–85% of the time, because her judgment has been trained on years of outcomes. A weather forecaster who says "30% chance of rain" sees rain about 30% of those days, because forecasters are rigorously calibrated on historical predictions.
Current LLMs are poorly calibrated. Research consistently shows that when an LLM says it is 95% confident, it may be correct only 60–80% of the time (depending on the model, the task, and whether it has been fine-tuned for calibration). The system's confidence and its actual accuracy are poorly matched, and the miscalibration is in the dangerous direction: overconfidence. It is much better to have a system that says "I'm 60% sure" when it is 80% right than one that says "I'm 99% sure" when it is 70% right.
Calibration is measured empirically. To evaluate a system's calibration: 1. Collect a set of test questions with known correct answers (drawn from domains where the system will be deployed, not just general-knowledge trivia). 2. For each question, ask the system to give an answer and a confidence score (0–100% probability of being correct). 3. Group predictions by confidence level (0–10%, 10–20%, ..., 90–100%). 4. For each group, compute the fraction of answers that are actually correct. 5. Plot a calibration curve: stated confidence on the x-axis, actual accuracy on the y-axis.
A perfectly calibrated system produces a diagonal line (10% confidence → 10% correct; 50% → 50%; 90% → 90%). An overconfident system produces a curve below the diagonal (90% confidence → 70% correct). An underconfident system is above the diagonal (50% confidence → 80% correct).
Calibration must be measured per domain, not as a single aggregate score. A model may be well-calibrated for general knowledge and badly calibrated for medical advice; well-calibrated for code in popular languages and badly calibrated for obscure frameworks; well-calibrated for common questions and badly calibrated for rare edge cases.
How do you improve calibration?
Temperature scaling. The simplest method: after a model generates output probabilities for multiple-choice answers, apply a single scalar parameter (the "temperature") to the logits, learned on a held-out validation set, that adjusts the confidence distribution to match observed accuracy. This is surprisingly effective for multiple-choice tasks, but it does not address hallucination in open-ended generation.
Fine-tuning on calibration data. Train the model on datasets where correct answers are labelled with appropriate confidence and incorrect or unknown answers are labelled as such, using datasets that include "I don't know" as an acceptable answer.
Retrieval augmentation with attribution. Rather than asking the model to answer from parametric knowledge, ground answers in retrieved documents, and require the model to cite which document supports which claim. This both reduces hallucination and provides evidence that can be verified.
Abstention classifiers. Train a separate classifier (or use the model's own probability distributions) to determine when the model is likely to be wrong, and refuse to answer or defer to a human in those cases. Set confidence thresholds below which the system will not provide an answer.
Conformal prediction. A set of statistical methods that provide guaranteed coverage (e.g. "the true answer is in this set 95% of the time") without making assumptions about the model's accuracy. Conformal prediction can produce prediction sets with formal statistical guarantees of correctness, which is particularly valuable in high-stakes applications.
Human-in-the-loop for high-stakes decisions. No automated calibration method is perfect. For decisions with meaningful consequences (medical diagnosis, legal advice, credit decisions), the system should present its reasoning and confidence, and a human should make the final decision.
The single most important capability for an honest bot is the ability to say "I don't know." This sounds trivial, but current LLMs are actively trained not to say it. During reinforcement learning from human feedback (RLHF) fine-tuning, responses that say "I don't know" or "I can't help with that" are frequently rated as unhelpful by human evaluators, so models learn to produce answers — even speculative or wrong ones — instead of declining.
Training a model to say "I don't know" appropriately requires: - Including "I don't know" as an acceptable answer in fine-tuning data. - Rewarding honest uncertainty and punishing confident wrong answers in reward modelling. - Defining the conditions under which "I don't know" is appropriate: the question is outside the training distribution; conflicting sources disagree; the answer requires real-time data the model does not have; the question is ambiguous; the model's internal confidence is below a threshold.
A system that says "I don't know" too often is frustrating (underconfidence). A system that never says "I don't know" is dangerous (overconfidence). The right balance is domain-dependent: a medical system should say "I don't know" quickly and defer to a doctor; a creative writing assistant can be more speculative because the cost of error is low.
The single most effective architectural pattern for reducing hallucination is retrieval-augmented generation: instead of asking the model to answer from its parametric knowledge, you give the model a corpus of source documents relevant to the query and ask it to answer based on those sources. The model's output is grounded in specific text it can quote and cite.
RAG systems typically work as follows: 1. Receive a user query. 2. Convert the query to an embedding. 3. Search a vector database (or keyword index) for documents, passages, or records relevant to the query. 4. Pass the retrieved passages (with their sources) to the LLM alongside the user query. 5. Ask the LLM to answer the question using only the information in the provided passages, and to cite which passage supports each factual claim. 6. If the retrieved passages do not contain enough information to answer the question, the model should say so rather than guessing.
RAG dramatically reduces hallucination because: - Answers are tied to actual retrieved text rather than the model's fuzzy parametric memory. - Citations allow humans (and automated systems) to verify claims against sources. - When no source supports an answer, the model can (if properly prompted) refuse to answer. - Knowledge can be updated by updating the source corpus, without retraining the model.
RAG does not eliminate hallucination. Models can still misquote sources, misinterpret passages, combine information incorrectly across sources, or fabricate citations. But it changes the failure mode from "invented from whole cloth" to "incorrect use of a provided source," which is easier to detect, test, and correct.
Every factual claim an honest bot makes should be tied to a source. This is not just helpful for users; it is a technical mechanism that constrains the model.
Good citation practices: - Cite specific sources (documents with titles, URLs, dates, page numbers, or database IDs — not vague references like "experts say"). - Quote the relevant passage from the source where possible (or at least point to a specific section). - Indicate when multiple sources agree, when they disagree, and when no source addresses the question. - Provide links where available (and warn if a source is outdated or potentially unreliable). - Distinguish direct quotations from paraphrases. - Flag when a claim is based on inference from multiple sources rather than explicitly stated in one.
Citation also enables post-hoc verification: an automated system can check whether the cited passage actually supports the claim attributed to it. If a model says "drug X has a 12% response rate (Smith et al., 2023, Table 3)," an automated verifier can retrieve Smith 2023, read Table 3, and confirm whether it actually says 12% — catching hallucinated citations before they reach the user.
How an AI system presents uncertainty to users matters as much as the underlying calibration. Bad uncertainty UI: - No uncertainty indication at all — the bot speaks with equal confidence about everything. - A tiny disclaimer buried at the bottom ("AI can make mistakes; verify important information") that no one reads. - Overwhelming technical detail (probability scores, logits, calibration plots) that non-technical users cannot interpret. - Binary certainty (the bot says either "I'm sure" or "I don't know" with no gradient).
Good uncertainty UI: - Varies language naturally with confidence: "I'm confident that..." / "Based on the documentation..." / "I think the answer is..., but I'm not certain" / "I don't have enough information to answer that." - Shows sources clearly and accessibly (collapsible references that expand when clicked, with clear links). - Flags high-stakes answers explicitly: "This is a medical question — please verify with a healthcare provider." - Separates facts the system knows from its reasoning or interpretation. - Makes "I don't know" a natural, acceptable response rather than a failure state. - Shows confidence in human terms (high/medium/low confidence) rather than raw probabilities, for general users. - Does not anthropomorphize. The interface should not imply the bot has feelings, beliefs, or subjective experience. It is a tool presenting information with degrees of certainty.
Every AI system deployed in a real context should have an explicit abstention policy: for a given domain and stakes level, what confidence threshold must the system meet before it provides an answer?
These thresholds should be explicit, documented, and tested. They should not be hidden in model weights or left to the model to decide implicitly.
For high-stakes applications, the correct architecture is not "AI replaces human" but "AI augments human." In a human-in-the-loop system: - The AI produces a draft answer, with sources and confidence scores. - A human expert reviews the draft, corrects errors, adds information the AI missed, and approves or rejects the answer. - The AI learns from human corrections over time (through fine-tuning or prompt improvement). - The human retains final decision-making authority.
This pattern produces better outcomes than either AI alone or human alone in many domains: - Medical imaging: AI flags potential abnormalities for radiologist review; radiologist makes diagnosis. - Legal contract review: AI flags unusual clauses for lawyer review; lawyer negotiates the contract. - Customer support: AI handles routine queries; complex or high-value queries are routed to human agents. - Content moderation: AI flags potentially violating content; human moderators make final decisions. - Software development: AI suggests code; human developer reviews, tests, and merges.
Human-in-the-loop systems are not a temporary step on the way to full automation. They are the correct long-term architecture for domains where errors matter, because they combine the speed and scale of AI with the judgment, contextual awareness, and responsibility of humans.
Some queries should not be answered at all, regardless of confidence. Guardrails must prevent the system from: - Providing instructions for harmful acts (weapons manufacture, self-harm, violence, cyberattacks). - Giving medical, legal, or financial advice beyond its authorized scope. - Producing deceptive or manipulative content (deepfake scripts, disinformation, fraud). - Generating non-consensual content, hate speech, or discriminatory output. - Giving specific advice in regulated domains without appropriate qualifications and disclosures.
Guardrails are a separate problem from honesty, but they interact: an honest bot must also be a safe bot, and part of honesty is knowing your own limitations — including ethical and legal limitations on what you should do. Guardrails should be transparent: if the system refuses to answer, it should explain why (in general terms), rather than producing a confusing evasive response.
We have a cultural model for the kind of helpful, honest, knowledge-grounded assistant an honest bot should be: a good reference librarian.
A good librarian does not know everything, but she knows how to find things. When you ask her a question, she does not guess or fabricate. If she knows the answer, she tells you, often pointing to the specific book or reference where she found it. If she does not know, she says "Let me look that up" and goes to the shelves. If the question is outside her expertise, she refers you to a specialist librarian for that subject. If sources disagree, she tells you that there are multiple perspectives and shows you the books. She does not pretend certainty she does not have. She helps you find what you need, and she teaches you how to find it yourself next time. She cites her sources. She is helpful without being authoritarian. She is a guide to knowledge, not an oracle.
This is exactly the model for an honest bot. Not a genius who knows everything, not a friend who gives confident advice, not a salesman who convinces you — a librarian: knowledgeable, helpful, honest about limits, grounded in sources, willing to look things up, willing to refer, and always pointing you to the underlying material rather than claiming ownership of it.
The AI industry has spent decades chasing the oracle model — the artificial general intelligence that can answer any question from its own knowledge, the Star Trek computer, the HAL 9000. But the librarian model is achievable now with current technology, and it is far more useful, far safer, and far more honest. An AI librarian with access to the world's information, properly designed to retrieve, cite, and acknowledge uncertainty, would be one of the most powerful tools humanity has ever built.
We do not need AI to know everything. We need AI to help us find and understand what is known, and to be honest when the answer is unknown or uncertain. That is the librarian's craft. It is also the honest bot's design.
Customer support is the most common commercial deployment of AI chatbots and the domain where hallucination is most frequently experienced by ordinary users. Customer support AI should be honest in specific ways:
Customer support AI is a good candidate for high-accuracy, narrow-domain RAG systems where the bot answers exclusively from the company's knowledge base. If a question is not in the knowledge base, the bot does not guess — it opens a support ticket.
Medical AI has life-or-death stakes. Honesty requirements for medical AI are correspondingly strict:
Medical AI that does not meet these standards should not be deployed. Honesty is not a UX feature in medical AI; it is a safety requirement.
Legal AI must: - Distinguish clearly between legal information (general knowledge about the law, which AI can provide) and legal advice (application of law to a specific person's situation, which should be given by a licensed attorney). - Cite full citations for every case, statute, and regulation referenced, with enough specificity that a human can verify (volume, reporter, page, court, year for cases; title, section, jurisdiction for statutes). - Flag when a question involves a jurisdiction the system is not trained on. - Flag when the law on an issue is unsettled, conflicting across circuits, or recently changed. - Never cite a case or statute it cannot actually find in its training corpus or its retrieval system. The New York lawyer case was caused by the model inventing cases rather than retrieving real ones; this is exactly the failure mode RAG with citation verification prevents. - Include mandatory disclaimers that it is not providing legal advice and does not create an attorney-client relationship.
Educational AI (tutoring systems, homework helpers, learning assistants) must be honest about the limits of its knowledge while still being pedagogically useful:
AI coding assistants (GitHub Copilot, Codeium, Cursor, and similar) are among the most useful AI applications because code can be verified (it compiles, tests pass or fail). Honesty for coding assistants means: - Never hallucinate APIs, functions, parameters, or library features. If the assistant is not certain a function exists, it should say so and suggest checking documentation. - Flag security concerns in generated code (SQL injection, XSS, hardcoded credentials). - Note when generated code uses deprecated APIs or patterns. - Provide working examples rather than pseudocode when possible. - Be clear when suggesting code outside the assistant's training window (newer library versions may have changed APIs). - Attribute code appropriately when reproducing code from open-source libraries (to avoid license issues).
Code is a domain where hallucination is relatively easy to detect (it does not compile, or tests fail, or it does not work when run). But developers under time pressure sometimes trust generated code and deploy it without thorough review, making honesty still important.
AI-powered search engines (Google Search Generative Experience, Perplexity, Bing Copilot) have a special responsibility for honesty because users rely on them to find true information:
Standard LLM benchmarks (MMLU, GSM8K, HumanEval, TruthfulQA) measure knowledge and reasoning, but they do not measure honesty or calibration directly. Evaluating honesty requires specific benchmarks and techniques:
These benchmarks should be run against any system before deployment, per domain, and re-run after any model update or prompt change. Honesty is not a property that is achieved once; it must be measured continuously.
Beyond automated benchmarks, conduct adversarial testing (red-teaming) specifically targeting overconfidence and hallucination: - Ask questions about non-existent entities, events, papers, and people (does the system invent answers or admit ignorance?). - Ask about recent events beyond the training cutoff (does it acknowledge the limit or invent?). - Ask questions where sources conflict (does it present the conflict or pick one side?). - Ask leading questions that suggest false premises ("Given that Napoleon lost at Waterloo in 1820..." — does the model correct the false date or go along with it?). - Ask questions in domains where the model is known to hallucinate frequently (obscure historical facts, niche scientific findings, non-English pop culture). - Pressure the model to be specific ("Give me the exact page number where this is stated" — does it invent a page number or admit it cannot?). - Edge cases: self-contradictory questions, trick questions, questions containing false assumptions.
Red-teaming should be done both internally and by external evaluators with domain expertise (doctors for medical AI, lawyers for legal AI).
Honesty must be monitored in production, not just in pre-deployment testing. Collect: - When users flag responses as incorrect or unhelpful. - When the system says "I don't know" (rate this tracks calibration over time). - When citations are clicked and whether users stay on the cited page or return (indicating whether the citation was relevant). - When human reviewers override the AI's answer (in human-in-the-loop systems). - When users follow up with "are you sure?" or "that doesn't seem right" (indicates the model produced something implausible). - Hallucination reports from users and customer support.
Track these metrics over time. A sudden increase in hallucination rate or drop in abstention rate may indicate a regression after a model update, a change in the retrieval corpus, or drift in user behaviour.
Every hallucination is a training opportunity. When the system produces a wrong or overconfident answer: 1. Log the query, the incorrect answer, the correct answer, and the source of truth. 2. Add this example to evaluation datasets so future model versions are tested against it. 3. If retrieval failed (no source was found), add the correct source to the corpus. 4. If the model misquoted a source, improve the prompt or add post-hoc citation verification. 5. If the model was below its confidence threshold but answered anyway, adjust the threshold.
A production honest bot improves over time through this feedback loop. The system should never make the same kind of mistake twice.
There are decisions where AI should not be involved at all, even as an assistant: - Final determinations of criminal guilt or innocence. AI can assist legal research but should not determine whether someone goes to prison. - Life-or-death medical decisions with no human review. AI can flag abnormalities; a human clinician must decide treatment. - Automated hiring or firing decisions without human oversight and appeal. AI screening for resume sorting is common but controversial; decisions that affect someone's livelihood require human judgment and due process. - Decisions about fundamental rights (visa applications, benefit eligibility, child custody, school admissions) where the cost of error is profound and appeal processes are limited. - Care for vulnerable populations (mental health crisis response, child protection, domestic violence intervention) without extensive human backup. - Situations where the human user cannot reasonably verify the answer (e.g. a patient who cannot look up medical sources).
The principle: if an AI error would cause irreversible harm and there is no feasible way for a human to verify the answer in context, do not deploy AI in that context.
Users should understand what they are interacting with. This means: - Clearly stating that the system is AI and can make mistakes. - Explaining what the system can and cannot do. - Providing context about training data and knowledge cutoffs. - Explaining how confidence is indicated. - Telling users how to report errors. - Not anthropomorphizing the system (giving it a human name, a face, a personality that implies personhood is misleading — a chatbot named "Alex" with a friendly avatar is more likely to be trusted inappropriately than one labelled clearly as an AI assistant).
These disclosures are not a one-time terms-of-service screen that users click past. They should be present in the interface, at the point of use, when the context matters. A medical AI that shows "this is not medical advice — consult a doctor" above every answer is more honest than one that buries the disclaimer in a footer.
When buying AI systems from vendors (as most companies do), evaluate their honesty: - Ask the vendor for calibration data on the specific tasks you will use the system for. Demand concrete numbers: "On questions of type X in domain Y, what is the accuracy at the 90% confidence threshold?" - Ask for hallucination rates measured on realistic queries, not just on standard benchmarks. - Ask what the system does when it does not know the answer — does it abstain, defer to a human, or guess? - Test the system yourself on questions where you know the answer, including questions designed to elicit hallucinations. - Ask about source attribution and whether the system provides verifiable citations. - Reject marketing language about "100% accuracy" or "no hallucinations" — these claims are false for every current AI system. - Contractually require honesty standards, monitoring, and error reporting.
Regulators are beginning to address AI honesty, particularly for high-stakes systems. The EU AI Act (2024) classifies AI systems by risk and requires transparency, human oversight, and accuracy reporting for high-risk systems. Similar frameworks are being developed in the US, UK, China, and other jurisdictions. Regulation will likely require, at minimum: - Transparency about when users are interacting with AI. - Disclosure of AI-generated content. - Accuracy and robustness testing for high-risk systems. - Human oversight for critical decisions. - Incident reporting when AI systems cause harm. - Documentation of training data, model capabilities, and limitations.
Good regulation will push vendors toward honest systems rather than fluent-but-unreliable ones. But regulation moves slowly, and technology moves quickly. Engineers and product builders should not wait for regulation to build honest AI; the ethical and business case for honesty already exists.
I worked on a fintech project in 2022 where we integrated a third-party AI fraud detection system. The vendor claimed 99% accuracy. We integrated it, ran it in shadow mode for two months (where the AI flagged transactions but humans made all decisions), and found that 23% of the transactions it flagged as fraudulent were legitimate. The "99% accuracy" claim was technically true (99% of transactions were legitimate and the AI correctly approved most of them) but operationally useless: the false positive rate was so high that if we had auto-declined based on the AI's flags, we would have blocked roughly $40,000 per week in legitimate transactions while missing several actual fraud cases.
When we asked the vendor about this, they said the model was "well-calibrated on our test dataset" and suggested we "tune the thresholds." The problem was not that the model was bad at fraud detection; fraud detection is hard and false positives are inevitable. The problem was that the vendor presented the model as reliable and ready to make automated decisions when it was not well-calibrated enough for that use. They had optimized for headline accuracy metrics, not for the specific cost of being wrong in production.
This is a universal lesson: the cost of a wrong answer depends on context. Saying "it looks like fraud" when there is no fraud costs the customer inconvenience, lost business, and possibly a closed account. Saying "it looks fine" when there is fraud costs the merchant money. These costs are asymmetric. An honest system must know the cost of its errors in the specific context where it is deployed and adjust its thresholds and behaviour accordingly — being more willing to flag and defer to humans in one direction, more willing to say "this looks fine" in another, depending on the stakes.
The technical term for this is cost-sensitive classification. It is not a new idea in machine learning, but it is routinely ignored in favour of simple accuracy metrics when AI systems are marketed and deployed. Honesty includes being honest about error rates, false positive rates, false negative rates, and the practical cost of each — not just presenting a single "accuracy" number that hides the real trade-offs.
This chapter presents a concrete, implementable architecture for an honest bot using components available in 2026. It is not the only possible architecture, but it demonstrates that building honest AI is technically feasible today.
Components: 1. Query classifier. A lightweight classifier (can be a small LLM or a traditional classifier) that determines: - The domain of the query (medical, legal, technical, general). - The stakes level (low, medium, high) based on keywords and context. - Whether the query is in scope for the system. - Whether the query requires retrieval (almost all factual queries do).
Retrieval system. A vector database + keyword search (hybrid search) over a curated corpus of verified sources (documentation, guidelines, verified databases). The retriever returns the top N relevant passages, each with a source URL, title, publication date, and reliability score.
Evidence evaluator. A secondary LLM pass (or a smaller classifier) that evaluates whether the retrieved passages contain enough information to answer the question. If the best passages are only tangentially relevant or contradict each other, the system abstains rather than answering.
Answer generator. The primary LLM generates an answer using only the retrieved passages, with inline citations to specific sources. The prompt instructs the model:
To avoid hedging or overstatement.
Citation verifier. After answer generation, an automated step verifies that:
No claim is made without a citation. Any citation that fails verification is removed; if a claim loses its citation, the claim is removed or the answer is flagged as requiring human review.
Confidence estimator. A calibrated model estimates the probability the answer is correct, based on:
Historical accuracy on similar questions. The confidence score determines whether the answer is shown to the user (above threshold), flagged as uncertain (above threshold but with uncertainty indicators), or deferred to a human (below threshold).
Human review queue. High-stakes queries, low-confidence answers, and answers flagged by the citation verifier are routed to a human expert for review before being sent to the user (or for asynchronous correction if already sent).
Response formatter. The final response is formatted with:
An offer to connect with a human if available.
Feedback loop. User feedback ("this was helpful" / "this was wrong"), human reviewer corrections, and flagged errors are logged and used to improve the retrieval corpus, fine-tune the prompt, and add evaluation examples.
Specific prompt engineering techniques improve honesty: - Citation requirement: "For every factual claim, provide a numbered citation to one of the provided sources. Any claim without a citation will be removed." - Abstention instruction: "If the provided sources do not contain enough information to answer the question, respond with exactly 'I don't have enough information to answer that' — do not speculate." - Confidence calibration: "Rate your confidence in each answer as high/medium/low based on the quality and directness of source support." - Anti-fabrication instruction: "Do not invent sources, citations, statistics, or facts that are not in the provided documents. If a number or claim is not in the sources, do not include it." - Disagreement handling: "If sources contradict each other, note the disagreement and present both perspectives with their sources." - Role framing: "You are a research assistant. Your job is to accurately summarize source material, not to produce the most convincing-sounding answer."
Prompts are not a complete solution (models can ignore them), but they substantially improve behaviour when combined with the architectural guardrails described above.
The honest bot paradigm is tools, not oracles. An honest bot does not present itself as a knower of truths; it presents itself as a tool that helps a user navigate, summarize, and reason about information. The distinction matters:
When AI systems are designed as tools rather than oracles, the user remains the decision-maker. The AI retrieves information, summarizes it, highlights patterns, suggests possibilities, and flags uncertainties. The human evaluates, contextualizes, decides, and takes responsibility. This is not a compromise or a temporary state on the path to full automation; it is the correct long-term relationship between humans and AI systems in domains where judgment matters.
Honest architecture can reduce hallucination dramatically and make AI systems safer and more reliable. It cannot solve every problem:
These limits are reasons for caution, not reasons for despair. AI systems do not need to be perfect to be useful. They need to be honest about what they can and cannot do, reliable enough to trust in the domains where they are deployed, and designed to keep humans in the loop for decisions that matter.
If the technology to build honest bots exists, why are most deployed AI systems dishonest by default? The answer is not technical; it is economic and incentive-based:
These incentives will shift as the costs of dishonest AI become more visible. The lawyer who was sanctioned, the company whose chatbot gave a customer wrong refund information, the patient who acted on incorrect medical advice, the student who learned false facts — these incidents create liability, reputational damage, and regulatory pressure. Over time, honesty will become a competitive advantage, not a cost.
I am optimistic about the trajectory. The engineering community is increasingly aware of hallucination as a first-class problem. Research on calibration, retrieval augmentation, citation-grounded generation, and conformal prediction is advancing rapidly. Regulatory frameworks are beginning to require transparency and reliability. Users are becoming more aware of AI limitations as they encounter hallucinations themselves.
But progress will not happen automatically. It requires: - Engineers who prioritize honesty over fluency in the systems they build. - Product managers who design interfaces that communicate uncertainty rather than hiding it. - Organizations that accept that some percentage of "I don't know" responses is a feature, not a bug. - Executives who invest in safety architecture even when it adds cost and latency. - Regulators who set meaningful standards for high-stakes AI. - Users who demand transparency, citations, and the option to talk to a human.
I keep coming back to the question of trust. We trust human experts not because they are always right, but because they earn trust over time: they are honest when they do not know, they cite their sources, they admit mistakes, they refer us to specialists when needed, they calibrate their confidence to their evidence, and their track record of accurate judgment is visible. We do not trust someone who is always confident and sometimes wrong; we trust someone whose confidence matches their competence.
AI systems will earn trust the same way: not by producing ever-more-fluent text, but by being calibrated, by citing sources, by admitting uncertainty, by deferring to humans, by being wrong less often over time, and by being transparent about their limitations. An AI that says "I don't know" when it does not know is more trustworthy than an AI that confidently invents answers, even if the latter appears smarter.
Honesty is not a constraint on AI capability. It is the foundation of AI reliability. A system that can admit what it does not know is more useful, more trustworthy, and ultimately more valuable than one that generates fluent nonsense with equal conviction. We are not waiting for a future AI that is always correct. We do not have such humans; we will not have such AI. What we can build, today, is AI that is honest about its limits. That is enough to make AI systems genuinely useful, genuinely safe, and genuinely trustworthy.
Build honest bots. The future of useful AI depends on it.
There is an ethical dimension to AI honesty that goes beyond engineering. When an AI system provides medical information, legal guidance, financial advice, or educational content, it is participating in decisions that affect human lives. Providing overconfident wrong answers in those contexts is not merely a technical failure; it is an ethical failure.
Consider: - A patient who forgoes treatment because an AI said their symptoms are probably nothing. - A defendant who relies on AI-generated legal advice and receives a longer sentence. - A student who learns incorrect science from an AI tutor and fails an exam (or worse, builds a career on incorrect understanding). - A small business owner who makes a tax filing based on AI advice and incurs penalties. - A user who trusts an AI-generated news summary that misrepresents an event and acts on that misinformation.
In each case, the harm is caused not by the AI being wrong (humans are wrong too) but by the AI presenting uncertainty as certainty. An honest system that says "this may be serious, see a doctor" causes different actions than one that says confidently "this is a viral infection, it will pass." The ethical duty of AI builders is to ensure that the level of confidence communicated matches the level of confidence actually warranted.
Harry Frankfurt's distinction between lies and bullshit (from Chapter 2) has ethical weight. A liar knows the truth and deliberately conceals it — that is a deliberate moral wrong, and AI systems do not do this because they lack intent. But when an AI system is deployed by people who know it is not calibrated, who know it hallucinates, and who ship it anyway with disclaimers hidden in the terms of service, those humans are closer to bullshitters than to liars: they do not care whether the output is true; they care about shipping a product, hitting metrics, making revenue. This is a moral failure of the deployer, not the model.
Building an honest bot is partly a technical challenge and partly an ethical stance. It requires saying: "It is more important that my system tells the truth about what it does not know than that it appears impressive. I will accept that some users will find a cautious, calibrated system less magical or satisfying than a confident but unreliable one. That trade-off is ethically correct."
AI systems operate in a context of asymmetric trust. The user typically knows less than the system's builder about how the system works, where it fails, and when it is likely to be wrong. This is why honesty cannot be left to users to "verify everything they read" — the user does not know what needs verifying. A patient cannot verify a medical AI the way a doctor can; a student cannot verify an AI tutor's chemistry explanations without already knowing chemistry; a defendant cannot verify an AI legal brief without legal expertise. The entire point of using an expert tool is that the user does not have the expertise to verify it themselves.
This asymmetry means the burden of honesty falls on the builder, not the user. It is not acceptable to build an unreliable system and say "users should verify everything." If verification is required, the system must make verification easy (through citations, source links, clear uncertainty markers), and high-stakes answers must be flagged as requiring human expert review.
I do not propose a formal Hippocratic Oath for AI engineers, but if I did it would include these commitments: - I will not deploy systems that I know to be uncalibrated in high-stakes contexts. - I will measure calibration and hallucination rates on real tasks, not just benchmarks. - I will build systems that can say "I don't know." - I will make uncertainty visible to users. - I will include citations and source links for factual claims. - I will design for human-in-the-loop review where errors cause harm. - I will not optimize for user engagement or fluency at the cost of honesty. - I will disclose my system's limitations clearly, not in buried fine print. - I will provide ways for users to report errors, and I will use those reports to improve the system. - I will refuse to build systems that I believe will cause harm through overconfident automation, even if asked to by management or clients.
These are not radical commitments. They are the same standards professionals in other fields — medicine, engineering, law, accounting — are held to. Software engineers building AI systems have the same professional obligations when their systems affect people's lives.
Large companies deploying AI internally face specific honesty challenges. Common failure modes in enterprise AI deployments include: - The "deploy everywhere" mandate. C-suite executives pressure teams to deploy AI across every function without assessing where it is reliable and where it is not. - Vendor overpromising. AI vendors demo fluent, impressive capabilities in controlled settings and sell into enterprises with promises of automation that do not hold up under real production conditions. - Shadow AI. Employees use consumer AI tools (ChatGPT, etc.) for work tasks without IT oversight, sometimes sending sensitive data to public models and relying on uncalibrated outputs for work decisions. - No ground truth feedback loop. Enterprise AI systems are deployed without systematic mechanisms for employees to flag incorrect answers or for those flags to reach model maintainers. - Automation bias. Once an AI system is deployed, employees tend to trust its outputs without verifying, even when the system is wrong. This is a well-documented phenomenon in aviation, medicine, and other domains where automated decision support is used; over-trust of automation leads to errors that humans would have caught.
Mitigation strategies for enterprises: - Deploy AI first in shadow mode (AI suggests; humans decide) before automating decisions. - Measure accuracy and calibration in your specific workflow, not on vendor benchmarks. - Require source citations and confidence indicators for every internal AI tool. - Make it easy for employees to flag errors, and act on those flags. - Train employees on AI limitations and the importance of verifying AI outputs. - Limit AI deployment in high-stakes domains (HR decisions, compliance, security) until systems are proven reliable through extended shadow-mode evaluation.
Governments are deploying AI in public services — benefits eligibility, tax administration, visa processing, passport applications, public health information, emergency response. The honesty requirements for public-sector AI are even stricter than for private-sector AI: - Citizens do not choose the government service; they cannot take their business elsewhere. - Decisions can deny people essential services, freedom of movement, or benefits they are entitled to. - Appeal processes are often slow, bureaucratic, or inaccessible. - Government has a democratic obligation to be transparent about how decisions are made.
Public-sector AI should have: - Auditability (every automated decision should be explainable and appealable to a human). - Transparency (citizens should be told when AI was used in a decision about them). - Calibration requirements tested against local populations (not just global benchmarks). - Explicit human review for denials and adverse decisions. - Public documentation of accuracy rates, false positive/negative rates, and error rates for demographic subgroups.
AI is being deployed rapidly in Africa, Asia, and Latin America — in health services for remote communities, agricultural extension, credit scoring for small businesses, educational tools for low-resource schools, and government services. These deployments have specific honesty challenges: - Training data is often biased toward Western contexts; models trained on Western data may be less accurate for African or Asian users. - Languages, dialects, and cultural contexts may be underrepresented in training data, leading to higher error rates that developers are not aware of. - Users may have less digital literacy and may not know that AI can be wrong, making them more susceptible to over-trusting confident wrong answers. - There may be fewer subject-matter experts available to review AI outputs (e.g. fewer doctors per capita in rural areas). - Regulatory frameworks are still developing in many countries, leaving gaps for untested AI to be deployed.
These challenges make honesty even more important in developing contexts. An honest, well-calibrated AI that knows its limits and defers to humans appropriately can be enormously valuable in contexts where experts are scarce. An overconfident AI that gives wrong advice where there are no experts to correct it can be harmful.
Honest AI is not solely an engineering problem. Users also need a baseline level of AI literacy to interact with these systems critically and safely. The same way we teach media literacy (how to evaluate news sources, identify bias, check claims), we need to teach AI literacy:
This is not about making people distrust AI. It is about making people trust AI appropriately — as a tool that can be useful but must be verified, like Wikipedia, like a search engine, like a calculator (which is usually right but can be wrong if you press the wrong buttons). AI literacy should be taught in schools, incorporated into workplace training, and built into AI interfaces themselves (which should model good practice by showing uncertainty rather than omniscience).
Two opposite failure modes exist in human-AI interaction:
Over-trust (automation bias): Users believe AI outputs are correct because they come from a computer, because the AI sounds confident, or because they have seen AI work well in other contexts. They fail to verify, miss errors, and defer to AI even when their own judgment contradicts it. This is dangerous, especially in high-stakes contexts.
Under-trust (algorithm aversion): Users dismiss AI outputs even when they are correct, because they have seen AI make mistakes before or because they distrust the technology. This wastes the potential benefits of AI and leads users to ignore helpful, accurate information.
Good interface design and honest AI behaviour reduce both: showing uncertainty and sources reduces over-trust by flagging where caution is needed; providing strong performance on clear, well-grounded answers reduces under-trust by demonstrating reliability in contexts where the system is accurate. Calibration is the path to appropriate trust: trust the system when it is confident and well-sourced; verify when it is uncertain; ignore it when it abstains.
If you are a software developer integrating AI into products, you have specific responsibilities:
Developers are the front line of AI honesty. The models themselves cannot be honest or dishonest; they are statistical predictors. The choices about how to deploy them, how to frame their outputs, how much autonomy to give them, and how much safety infrastructure to build around them are made by engineers.
Trust in software systems is built slowly through consistent reliability. A customer support bot that is correct 95% of the time and says "I don't know" the other 5% builds trust over months and years. A customer support bot that is correct 98% of the time but confidently gives wrong answers 2% of the time can destroy trust in a single bad interaction — especially if that wrong answer costs a customer money, time, or distress.
This asymmetry is why erring on the side of caution is wise. A user who gets "I don't know, let me connect you to an agent" is mildly inconvenienced. A user who gets a confident wrong answer may never use your AI — or your product — again. In high-stakes domains (healthcare, finance, legal), a single confident wrong answer can cause lasting harm.
Build trust slowly by being consistently honest. Do not sacrifice that trust for short-term fluency or engagement.
The software industry has a culture of shipping fast, breaking things, and optimizing for growth metrics. This culture has produced enormous innovation, but it is poorly suited to building AI systems where error costs are high. We need a culture shift:
This culture is already emerging in parts of the AI community — in safety research, in RAG-first architectures, in companies building thoughtful AI tools, in regulatory frameworks. It is not universal; the pressure to ship flashy demos and claim artificial general intelligence is enormous. But I believe it will prevail, because honest systems outperform dishonest ones in the long run — not on demo day, but over years of real use, where trust, reliability, and usefulness matter more than fluency.
Over one week, collect 20 responses from any AI system you use (ChatGPT, Claude, Gemini, Copilot, customer support bots, AI search). For each response, assess: - Does it make factual claims without sources? - Does it express any uncertainty? - Are there claims you can verify? If so, are they accurate? - Does it ever say "I don't know"? - How confident does it sound? Does that confidence match the apparent reliability?
You will likely find that even on fact-heavy queries, the system rarely says "I don't know" and rarely cites verifiable sources. This is the baseline we start from.
Take any AI system you use and add this to your custom instructions or system prompt: "If you are not confident in an answer, say 'I don't know.' Do not guess. Rate your confidence (high/medium/low) for every factual claim. Cite sources when possible." Compare the responses before and after. You will see a measurable reduction in confident wrong answers — though prompt engineering alone will not eliminate hallucination.
Take a list of 100 factual questions (from TriviaQA, or write your own). For each question, ask an LLM to give an answer and a confidence score (0–100%). Grade each answer as right or wrong. Group by confidence bucket and compute the actual accuracy per bucket. Plot a rough calibration curve. This exercise will convince you that miscalibration is real.
Build a simple question-answering system using any LLM API and a small corpus (5–10 documents of your choice — say, a set of product FAQs). Implement: - Vector search or keyword search to retrieve relevant passages. - A prompt that instructs the model to answer only from the provided passages and to say "not in the documents" when the answer is not there. - Test the system with questions that are in the documents and questions that are not. Does it appropriately abstain?
Even a minimal RAG system will demonstrate the power of grounding answers in sources.
Extend the RAG system from Build It 4 to require inline citations for every factual claim. After the model generates an answer, write a verification step (using a second LLM call or simple string matching) that checks whether each cited passage actually contains the claimed information. Reject answers that have unsupported claims.
For the system you built, implement a confidence threshold: if the model's self-reported confidence (or your classifier's confidence) is below 70% (or your chosen threshold), do not show the answer; instead show "I don't have enough confidence to answer this — please rephrase or ask a human." Measure how many queries fall below the threshold and whether those would have been wrong if answered.
Sketch a user interface for an AI assistant that communicates uncertainty clearly. Consider: - How to show high/medium/low confidence without alarming users. - How to display citations in a way that encourages verification. - How to offer escalation to a human. - Where to place disclaimers so they are seen but not intrusive. - How to distinguish facts with sources from inferences.
Good UI design is as important as good model behaviour.
Pick a commercial AI product you have access to (a customer support bot, an AI search engine, a coding assistant, a medical information site). Spend 30 minutes asking adversarial questions designed to elicit hallucinations: - Questions about non-existent events or papers. - Questions about events after its knowledge cutoff. - Questions that contain false presuppositions. - Questions requiring precise citations or page numbers. - Questions in languages the system may not handle well. - Questions on obscure technical topics.
Document what you find. Report serious hallucinations to the vendor.
If you work on AI products (as engineer, PM, designer, or executive), draft a one-page "AI Honesty Policy" for your team that specifies: - When the system must cite sources. - When the system must defer to a human. - What confidence threshold is required before automated answers are shown. - How uncertainty is communicated to users. - How hallucinations are logged and used to improve the system. - What disclosures are required to users.
The policy does not need to be perfect; writing it forces your team to discuss the trade-offs explicitly rather than shipping an uncalibrated model by default.
Abstention — The AI system declining to answer a question rather than guessing or providing an uncertain answer.
Calibration — The degree to which a system's stated confidence matches its actual accuracy. A well-calibrated system that says it is 80% confident is correct approximately 80% of the time.
Citation verification — An automated or manual step checking that cited sources actually support the claims attributed to them.
Confabulation — Producing fabricated or distorted narratives without intent to deceive, often with high confidence and internal coherence. A more precise term than "hallucination" for LLM false outputs.
Confidence score — A numerical probability (0–100% or 0–1) that the system assigns to its own answer, representing its estimated probability of being correct.
Conformal prediction — A statistical framework for producing prediction sets (rather than single answers) with mathematically guaranteed coverage rates (e.g. "the true answer is in this set 95% of the time").
Cost-sensitive classification — ML classification that accounts for the asymmetric costs of different types of errors (false positives vs false negatives) rather than optimizing for raw accuracy.
Fine-tuning — Additional training of a pre-trained model on a specific dataset (e.g. calibration data) to adapt its behaviour.
Guardrails — Systems and prompts that prevent AI from producing harmful, off-topic, or unsafe responses, independent of the model's base capabilities.
Hallucination — Common (but imprecise) term for AI generating false or fabricated content presented as fact.
Human-in-the-loop — A system design where AI produces outputs that are reviewed, corrected, or approved by a human before being acted upon or shown to end users.
LLM (Large Language Model) — A neural network trained on large text corpora to generate text by predicting next tokens. GPT, Claude, Gemini, Llama, and Mistral are examples.
Overconfidence — A miscalibration where the system states higher confidence than its actual accuracy warrants. The most dangerous direction of miscalibration in AI systems.
RAG (Retrieval-Augmented Generation) — An architecture where the model retrieves relevant documents from a knowledge base before generating an answer, grounding the response in source material.
RLHF (Reinforcement Learning from Human Feedback) — A fine-tuning method where human raters score model outputs, and the model is trained to produce outputs that humans rate highly. Can inadvertently penalize "I don't know" responses.
Temperature scaling — A simple post-hoc calibration method that adjusts the model's output probabilities by a single learned temperature parameter to improve calibration.
Red-teaming — Adversarial testing of an AI system to find failure modes, safety issues, hallucinations, or vulnerabilities before deployment.
Vector database — A database specialized for storing and querying vector embeddings (numerical representations of text), used in RAG systems for semantic search.
Examples in this book are based on published research and publicly reported incidents as of 2026. Specific cases (the New York lawyer, medical AI studies, customer support hallucinations) are drawn from news reports and peer-reviewed studies; citations to specific studies and reports are omitted to keep the book readable, but the underlying research is widely available in AI safety, ML calibration, and human-computer interaction literature.
The architectural recommendations reflect current best practices as of 2026; specific tools and model architectures will evolve, but the principles of calibration, source grounding, abstention, citation, and human-in-the-loop design will remain.
Thanks to the researchers and engineers working on AI calibration, hallucination mitigation, retrieval-augmented generation, and AI safety — much of this book draws on your work. Thanks to the developers and product managers who are shipping honest AI despite pressure to prioritize fluency and engagement. Thanks to the medical, legal, and educational professionals who have told me stories about AI failures and successes in the field. Thanks to my editor for pushing me to be precise about what current systems can and cannot do.
This book was written in Markdown, assembled with a Python script, typeset with WeasyPrint, and built into PDF (6×9 inch trade paperback) and EPUB formats.
The cover design employs a polygraph/seismograph motif — a wavy navy line across the cream cover with sections in oxblood and teal marking areas of uncertainty, evoking both a lie-detector readout and a signal waveform with noise — distinct from all previous books in the series.
Set in system serif type. Manuscript length is approximately 35,000 words.
Harare, Zimbabwe November 2026