Country: Mexico
You are in the Mexico edition. Type your country to switch.
Nigeria
The Americas
Loading every country…
No country matches. Check the spelling, or choose "Any country" for the Global edition.
You are learning in the Mexico edition, with examples in pesos and from Mexico.
Your learning profile
AI prompt engineering · Lesson 11 of 12
Hallucination and grounding
Models produce confident errors and invented citations because they predict plausible text. This lesson shows how to ground answers in supplied documents, ask for quotes and locations, give permission to say not in the source, and outlines retrieval-augmented generation.
This lesson is complete in writing. A video for it is on its way.
What you will learn
- You can explain why language models produce confident errors and invented citations.
- You can ground an answer in documents you supply, with quotes and locations.
- You can give a model permission to say that something is not in the source.
- You can describe retrieval-augmented generation in outline and its limits.
- You can check a list of citations and report what you found.
Key terms in this lesson
- AI hallucination
- A confident answer from an AI tool that is false or made up, such as an invented figure or a source that does not exist.
- Fabricated citation
- A reference produced by a model that looks genuine but points to a source that does not exist, or to a real source that does not say what is claimed.
- Grounding
- Tying a model's answer to supplied sources so that each claim can be traced to a specific passage and checked by a person.
- Retrieval-augmented generation
- A system design in which relevant documents are first searched for and fetched, then given to the model with the question so its answer can draw on them.
- Step 1: Why confident errors happen, not started
- Step 2: Invented citations, checked, not started
- Step 3: Grounding answers in your sources, not started
- Step 4: Retrieval-augmented generation, in outline, not started
- Step 5: The habit to keep, not started
About 8 min of reading
Step 1 of 5
Why confident errors happen
Opening this step…
Step 2 of 5
Invented citations, checked
This step opens when you finish the one above.
Step 3 of 5
Grounding answers in your sources
This step opens when you finish the one above.
Step 4 of 5
Retrieval-augmented generation, in outline
This step opens when you finish the one above.
Step 5 of 5
The habit to keep
This step opens when you finish the one above.
Key takeaways
The key takeaways open when you finish every step.
Lesson quiz
5 questions. You need 85% to pass.
The quiz opens when you finish every step.
Read first
Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.