CertBrain
Sign in

Photo by Towfiqu barbhuiya on Unsplash

Why AI models make things up, and what actually helps

by Miles Corran · November 26, 2026

If you are preparing for the AWS Certified AI Practitioner exam (AIF-C01), you will meet the word hallucination. It is one of the most useful ideas to get straight, because exam scenarios often describe the problem without naming it.

What it is

A hallucination is when a generative AI model produces an answer that sounds confident and fluent but is wrong or made up. A chatbot that cites a policy your company does not have, or a reference that does not exist, is hallucinating.

Why it happens

A large language model is trained to predict likely text. It is not looking facts up. If the question touches something it never saw, saw rarely, or that has changed since training, it will still produce a plausible-sounding answer, because producing plausible text is what it does. Fluency and accuracy are not the same thing.

What helps, and when each is the right answer

  • Ground the model in your own documents. Retrieval-augmented generation (RAG) fetches relevant passages from a trusted source and gives them to the model along with the question, so it answers from real text. This is the usual right answer when the problem is "the model does not know our current or private information". On AWS, Knowledge Bases for Amazon Bedrock is the managed way to do this.
  • Write clearer prompts. Tell the model to answer only from the supplied text and to say when it does not know. This is cheap and helps, but it does not add knowledge the model lacks.
  • Add guardrails. Amazon Bedrock Guardrails can filter topics and check responses, including checking whether an answer is grounded in the source you supplied. It reduces risk but does not make a model perfect.
  • Keep a human in the loop. For high-stakes answers such as medical, legal or financial content, a person should review the output.
  • Fine-tuning changes a model's style or behaviour using your examples. It is not the first tool for "the model lacks current facts". Retrieval is usually simpler and easier to keep up to date.

A common confusion: temperature

Temperature controls how random the model's word choices are. A low temperature makes answers more repeatable. It does not make them true. A model at low temperature can be consistently and confidently wrong. If an exam option says lowering temperature "eliminates" hallucinations, be suspicious of the word "eliminates".

How to spot it in a scenario

Look for clues such as "the model gives outdated answers", "invents details", "must answer from our internal handbook" or "cites sources that do not exist". These point to grounding. Clues such as "needs a consistent brand voice" point more towards prompting or fine-tuning.

Practice question (original)

A company runs a support chatbot built on a foundation model. Customers report that it sometimes describes refund rules that are not in the company's policy. The company wants answers based on its current policy documents, with the least ongoing effort. Which approach is the best fit?

  • A. Increase the temperature so the model explores more answers
  • B. Use retrieval-augmented generation with the policy documents as the source
  • C. Retrain a new foundation model from scratch on the policy documents
  • D. Shorten the prompt so the model has less to get wrong

Answer: B.

  • A is wrong. A higher temperature makes output more random, which tends to make invented answers more likely, not less.
  • B is right. RAG supplies the real policy text at answer time, and updating the documents updates the answers without retraining.
  • C is wrong. Training a foundation model from scratch is very costly and far beyond what this problem needs, and it would not stay current as policies change.
  • D is wrong. A shorter prompt does not give the model any facts about the policy.

One thing to take away

When the problem is "the model does not know our facts", think grounding first. When the problem is "the model should sound or behave a certain way", think prompting or fine-tuning.

You can practise this kind of scenario in the CertBrain courses and quizzes.

CertBrain is an independent study tool. It is not affiliated with, endorsed by or sponsored by Amazon Web Services.