{"id":11787,"date":"2026-11-04T00:27:10","date_gmt":"2026-11-03T22:27:10","guid":{"rendered":"https:\/\/betterqa.co\/?page_id=11787"},"modified":"2026-11-04T00:27:10","modified_gmt":"2026-11-03T22:27:10","slug":"hallucination","status":"publish","type":"page","link":"https:\/\/betterqa.co\/glossary\/hallucination\/","title":{"rendered":"What is an AI hallucination?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"11787\" class=\"elementor elementor-11787\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-glhals1 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"glhals1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-glhalc1\" data-id=\"glhalc1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-glhalw1 elementor-widget elementor-widget-html\" data-id=\"glhalw1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n\/* BetterQA QA glossary: shared styles for \/glossary\/ and \/glossary\/<slug>\/.\n   Every selector starts with .bqa-gl, which sits on the root element of each fragment,\n   so nothing here can reach the site header, footer or injected modules. *\/\n.bqa-gl{--gl-ink:#0C1726;--gl-body:#3d4653;--gl-dim:#5f6b78;--gl-line:#e6e9ee;--gl-purple:#9152DE;--gl-deep:#5F29A1;--gl-wash:#f6f8f9;font-family:'Roboto',sans-serif;font-weight:400;color:var(--gl-body);line-height:1.65;background:#fff;font-size:1rem}\n.bqa-gl *,.bqa-gl *::before,.bqa-gl *::after{box-sizing:border-box}\n.bqa-gl h1,.bqa-gl h2,.bqa-gl h3{font-family:'Jost',sans-serif;color:var(--gl-ink);text-transform:none;font-weight:600;line-height:1.25;letter-spacing:0;margin:0}\n.bqa-gl a{color:var(--gl-deep);text-decoration:underline;text-underline-offset:2px}\n.bqa-gl a:hover{color:var(--gl-ink)}\n.bqa-gl .bqa-gl-wrap{max-width:820px;margin:0 auto;padding:0 24px}\n.bqa-gl .bqa-gl-crumbs{font-size:.8125rem;color:var(--gl-dim);padding:20px 0 0}\n.bqa-gl .bqa-gl-crumbs a{color:var(--gl-dim)}\n.bqa-gl .bqa-gl-crumbs span{margin:0 6px}\n.bqa-gl .bqa-gl-label{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.6875rem;font-weight:500;color:var(--gl-deep);text-transform:uppercase;letter-spacing:.15em;display:flex;align-items:center;gap:10px;margin:0 0 14px}\n.bqa-gl .bqa-gl-label::before{content:'';width:20px;height:1px;background:var(--gl-purple);flex-shrink:0}\n.bqa-gl .bqa-gl-hero{padding:28px 0 36px;border-bottom:1px solid var(--gl-line)}\n.bqa-gl .bqa-gl-hero h1{font-size:clamp(1.8rem,4vw,2.5rem);margin:0 0 16px}\n.bqa-gl .bqa-gl-def{font-size:1.125rem;line-height:1.6;color:var(--gl-ink);margin:0;padding:16px 20px;border-left:3px solid var(--gl-purple);background:var(--gl-wash);border-radius:0 10px 10px 0}\n.bqa-gl .bqa-gl-sec{padding:40px 0;border-bottom:1px solid var(--gl-line)}\n.bqa-gl .bqa-gl-sec h2{font-size:clamp(1.3rem,2.4vw,1.6rem);margin:0 0 12px}\n.bqa-gl .bqa-gl-sec p{margin:0 0 14px;max-width:700px}\n.bqa-gl .bqa-gl-sec p:last-child{margin-bottom:0}\n.bqa-gl .bqa-gl-sec ul{margin:0 0 14px;padding:0 0 0 20px;max-width:700px}\n.bqa-gl .bqa-gl-sec li{margin:0 0 8px}\n.bqa-gl .bqa-gl-sec strong{color:var(--gl-ink);font-weight:600}\n.bqa-gl .bqa-gl-how{background:var(--gl-wash)}\n.bqa-gl .bqa-gl-sec .bqa-gl-related{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}\n.bqa-gl .bqa-gl-related li{margin:0;padding:6px 12px;border:1px solid var(--gl-line);border-radius:999px;font-size:.875rem;color:var(--gl-dim);background:#fff}\n.bqa-gl .bqa-gl-related li a{text-decoration:none;font-weight:500}\n.bqa-gl .bqa-gl-next{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:40px 0 48px}\n.bqa-gl .bqa-gl-card{border:1px solid var(--gl-line);border-radius:12px;padding:18px 20px;background:#fff}\n.bqa-gl .bqa-gl-card-k{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.625rem;color:var(--gl-dim);text-transform:uppercase;letter-spacing:.1em;display:block;margin:0 0 6px}\n.bqa-gl .bqa-gl-card a{font-family:'Jost',sans-serif;font-weight:500;font-size:1.0625rem;text-decoration:none}\n.bqa-gl .bqa-gl-card p{margin:6px 0 0;font-size:.875rem;color:var(--gl-dim)}\n\/* Hub *\/\n.bqa-gl .bqa-gl-intro{font-size:1.0625rem;max-width:680px;margin:0}\n.bqa-gl .bqa-gl-az{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 0;padding:0;list-style:none}\n.bqa-gl .bqa-gl-az li{margin:0}\n.bqa-gl .bqa-gl-az a,.bqa-gl .bqa-gl-az span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;font-family:'Jost',sans-serif;font-weight:500;font-size:.9375rem;text-decoration:none}\n.bqa-gl .bqa-gl-az a{background:var(--gl-wash);border:1px solid var(--gl-line);color:var(--gl-deep)}\n.bqa-gl .bqa-gl-az span{color:#a3abb5}\n.bqa-gl .bqa-gl-letter{display:grid;grid-template-columns:56px 1fr;gap:16px;padding:24px 0;border-bottom:1px solid var(--gl-line)}\n.bqa-gl .bqa-gl-letter h2{font-size:1.75rem;color:var(--gl-purple);line-height:1}\n.bqa-gl .bqa-gl-terms{list-style:none;margin:0;padding:0}\n.bqa-gl .bqa-gl-terms li{margin:0 0 14px}\n.bqa-gl .bqa-gl-terms li:last-child{margin-bottom:0}\n.bqa-gl .bqa-gl-terms a{font-family:'Jost',sans-serif;font-weight:600;font-size:1.125rem;text-decoration:none}\n.bqa-gl .bqa-gl-terms p{margin:2px 0 0;font-size:.9375rem;max-width:640px}\n.bqa-gl .bqa-gl-cta{margin:36px 0 48px;padding:22px 24px;border-radius:12px;background:var(--gl-wash);border:1px solid var(--gl-line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}\n.bqa-gl .bqa-gl-cta p{margin:0;color:var(--gl-ink);font-family:'Jost',sans-serif;font-weight:500;font-size:1.0625rem}\n.bqa-gl .bqa-gl-btn{display:inline-flex;align-items:center;padding:11px 20px;border-radius:8px;background:var(--gl-ink);color:#fff;font-family:'Jost',sans-serif;font-weight:500;font-size:.9375rem;text-decoration:none}\n.bqa-gl .bqa-gl-btn:hover{background:var(--gl-deep);color:#fff}\n@media (max-width:600px){\n  .bqa-gl .bqa-gl-wrap{padding:0 16px}\n  .bqa-gl .bqa-gl-hero{padding:20px 0 28px}\n  .bqa-gl .bqa-gl-def{font-size:1.0625rem;padding:14px 16px}\n  .bqa-gl .bqa-gl-sec{padding:32px 0}\n  .bqa-gl .bqa-gl-next{grid-template-columns:1fr;padding:32px 0 40px}\n  .bqa-gl .bqa-gl-letter{grid-template-columns:40px 1fr;gap:10px}\n  .bqa-gl .bqa-gl-letter h2{font-size:1.5rem}\n}\n\/* Team block (real office photo, bottom of every page) *\/\n.bqa-gl .bqa-gl-by{display:grid;grid-template-columns:200px 1fr;gap:20px;align-items:center;margin:0 0 48px;padding:16px;border:1px solid var(--gl-line);border-radius:12px;background:#fff}\n.bqa-gl .bqa-gl-by img{display:block;width:100%;height:auto;border-radius:8px}\n.bqa-gl .bqa-gl-by p{margin:0;font-size:.9375rem;color:var(--gl-dim)}\n.bqa-gl .bqa-gl-by strong{color:var(--gl-ink);font-weight:600}\n@media (max-width:600px){\n  .bqa-gl .bqa-gl-by{grid-template-columns:1fr;margin-bottom:40px}\n}\n<\/style>\n<div class=\"bqa-svc-page bqa-gl\">\n<div class=\"bqa-gl-wrap\">\n  <nav class=\"bqa-gl-crumbs\" aria-label=\"Breadcrumb\"><a href=\"https:\/\/betterqa.co\/\">Home<\/a><span aria-hidden=\"true\">\/<\/span><a href=\"https:\/\/betterqa.co\/glossary\/\">QA glossary<\/a><span aria-hidden=\"true\">\/<\/span>Hallucination<\/nav>\n  <header class=\"bqa-gl-hero\">\n    <p class=\"bqa-gl-label\">QA glossary<\/p>\n    <h1>What is an AI hallucination?<\/h1>\n    <p class=\"bqa-gl-def\">A hallucination is wrong information that a large language model (LLM) produces and presents as if it were true. The ISTQB glossary defines it as \"Wrong information created by an LLM.\" The answer reads fluently, which is why it is easy to miss.<\/p>\n  <\/header>\n  <section class=\"bqa-gl-sec\">\n    <h2>An example from QA practice<\/h2>\n      <p>A team asks an AI assistant to write test cases from a user story about password reset. The assistant returns twelve cases. Ten are sound. One checks that the reset link expires after 24 hours, a rule that appears nowhere in the story or the product, and one calls an API endpoint that does not exist. Both look as convincing as the other ten. A tester who runs them without checking the source ends up reporting a \"bug\" against a requirement nobody wrote.<\/p>\n  <\/section>\n  <section class=\"bqa-gl-sec\">\n    <h2>Why it matters when you buy testing<\/h2>\n      <ul><li><strong>In your product:<\/strong> if your app has a chatbot or an AI feature, a confident wrong answer reaches your customer with your name on it.<\/li><li><strong>In your testing:<\/strong> if a supplier uses AI to write tests or bug reports, a hallucinated test can pass for the wrong reason or flag a defect that is not there.<\/li><li><strong>Ask the supplier:<\/strong> who checks AI-generated test cases against the real requirements before they count?<\/li><\/ul>\n  <\/section>\n  <section class=\"bqa-gl-sec\">\n    <h2>Where the definition comes from<\/h2>\n      <p>The quoted definition is from the ISTQB glossary. The ISTQB Testing with Generative AI syllabus (CT-GenAI v1.1, section 3.1.1) gives examples from testing work: fictitious test cases, test scripts that do not run, and tests for acceptance criteria that do not exist. Section 3.1.2 lists the ways to catch them: compare the output with documentation and known system behaviour, ask a subject matter expert, and check outputs for consistency with each other.<\/p>\n  <\/section>\n  <section class=\"bqa-gl-sec\">\n    <h2>Common questions<\/h2>\n      <h3 style=\"margin:18px 0 6px\">Can hallucinations be eliminated?<\/h3>\n      <p>Techniques such as grounding the model in trusted documents and checking its output automatically reduce how often hallucinations happen, but none of them removes them. The safe approach is to assume some will occur and to put a check between the model and anyone who relies on its answer.<\/p>\n      <h3 style=\"margin:18px 0 6px\">How do you test an AI feature for hallucinations?<\/h3>\n      <p>Ask questions whose correct answers are known and compare each answer with the source. Add questions the documentation does not cover, where the right answer is to say so, and questions that invite a made-up answer, such as asking about a feature that does not exist. Record each wrong answer with the exact prompt, so the problem can be repeated and rechecked.<\/p>\n      <h3 style=\"margin:18px 0 6px\">Is a hallucination the same as a bug?<\/h3>\n      <p>It behaves like one, because a user receives wrong output, but the cause differs. In ordinary software a bug is a flaw in code that can be located and fixed. A hallucination comes from how the model generates text, so the fix is often a change to the prompt, the data it can consult, or the checks around it.<\/p>\n  <\/section>\n<\/div>\n<section class=\"bqa-gl-sec bqa-gl-how\">\n  <div class=\"bqa-gl-wrap\">\n    <h2>How BetterQA does it<\/h2>\n      <p>Our own tools use AI, so we apply the same rule to them that we apply to a client's product: an engineer reviews every AI-generated result before it counts. A test case, a bug report or a finding that cannot be traced to the requirement or to observed behaviour does not go into BugBoard. Wrong answers can arrive with evidence that looks real: our AI sales agent picked someone at the wrong company in 11 of 47 searches, as <a href=\"\/ai-sales-agent-wrong-person\/\">this write-up<\/a> shows. When we test a client's AI feature, our engineers check its answers against the product's own documentation and data, the cross-verification the syllabus describes. For chatbots, this is our <a href=\"\/software-testing-services\/chatbot-testing\/\">chatbot testing service<\/a>.<\/p>\n  <\/div>\n<\/section>\n<div class=\"bqa-gl-wrap\">\n  <section class=\"bqa-gl-sec\">\n    <h2>Related terms<\/h2>\n    <ul class=\"bqa-gl-related\">\n      <li><a href=\"https:\/\/betterqa.co\/glossary\/llm-powered-agent\/\">LLM-powered agent<\/a><\/li>\n      <li><a href=\"https:\/\/betterqa.co\/glossary\/non-determinism\/\">Non-determinism<\/a><\/li>\n      <li><a href=\"https:\/\/betterqa.co\/glossary\/red-teaming\/\">Red teaming (AI)<\/a><\/li>\n      <li><a href=\"https:\/\/betterqa.co\/glossary\/test-oracle\/\">Test oracle<\/a><\/li>\n      <li><a href=\"https:\/\/betterqa.co\/glossary\/acceptance-criteria\/\">Acceptance criteria<\/a><\/li>\n    <\/ul>\n  <\/section>\n  <div class=\"bqa-gl-next\">\n    <div class=\"bqa-gl-card\"><span class=\"bqa-gl-card-k\">Further reading<\/span><a href=\"https:\/\/betterqa.co\/ai-testing-guide\/\">AI testing guide<\/a><p>How to test a product that uses AI.<\/p><\/div>\n    <div class=\"bqa-gl-card\"><span class=\"bqa-gl-card-k\">Service<\/span><a href=\"https:\/\/betterqa.co\/ai-gone-wild\/\">AI risk testing<\/a><p>Hallucinations, prompt injection, bias and drift, tested before launch.<\/p><\/div>\n  <\/div>\n<\/div>\n<div class=\"bqa-gl-wrap\"><aside class=\"bqa-gl-by\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2025\/05\/SZY_6636-scaled.jpg\" alt=\"BetterQA QA engineers working together at the Cluj-Napoca office\" width=\"800\" height=\"533\" loading=\"lazy\" title=\"\"><p><strong>Written by the BetterQA QA team in Cluj-Napoca.<\/strong> Definitions come from the testing we do for clients every week.<\/p><\/aside><\/div>\n<script type=\"application\/ld+json\">\n{\n \"@context\": \"https:\/\/schema.org\",\n \"@type\": \"DefinedTerm\",\n \"@id\": \"https:\/\/betterqa.co\/glossary\/hallucination\/#term\",\n \"name\": \"Hallucination\",\n \"description\": \"A hallucination is wrong information that a large language model (LLM) produces and presents as if it were true. The ISTQB glossary defines it as \\\"Wrong information created by an LLM.\\\" The answer reads fluently, which is why it is easy to miss.\",\n \"url\": \"https:\/\/betterqa.co\/glossary\/hallucination\/\",\n \"inDefinedTermSet\": {\n  \"@id\": \"https:\/\/betterqa.co\/glossary\/#set\"\n },\n \"alternateName\": [\n  \"AI hallucination\",\n  \"LLM hallucination\"\n ]\n}\n<\/script>\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":11755,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-11787","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/11787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=11787"}],"version-history":[{"count":1,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/11787\/revisions"}],"predecessor-version":[{"id":11797,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/11787\/revisions\/11797"}],"up":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/11755"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=11787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}