Skip to content
Edition NigeriaGlobal
Country: Mexico

You are in the Mexico edition. Type your country to switch.

The Americas

Set up your profile

You are learning in the Mexico edition, with examples in pesos and from Mexico.

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.

Beginner10 min read5 steps

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 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.

Up next

AI at workPrompt injection and other failu…Read nowPrompt injection and other failure modesAI at work · Beginner · 15 minAI at workWhere to startRead nowWhere to startAI at work · Beginner · 15 minAI at workCustomer serviceRead nowCustomer serviceAI at work · Beginner · 15 minAI at workMarketing on a budgetRead nowMarketing on a budgetAI at work · Beginner · 15 minAI & securityPhishing, smishing and vishing a…Read nowPhishing, smishing and vishing aimed at investorsAI & security · Beginner · 15 minLaw, regulation & ethicsMarket manipulation: spoofing, l…Read nowMarket manipulation: spoofing, layering, pump-and-dump and wash tradesLaw, regulation & ethics · Intermediate · 15 minMedia strategy & planningWhat media strategy is, and how …Read nowWhat media strategy is, and how it differs from media planningMedia strategy & planning · Intermediate · 5 minAI stocks & technology investingThe AI value chain: chips, cloud…Read nowThe AI value chain: chips, cloud, models and appsAI stocks & technology investing · Beginner · 15 minAI at workData leakageRead nowData leakageAI at work · Intermediate · 15 minPortfolio managementModern portfolio theory in plain…Read nowModern portfolio theory in plain EnglishPortfolio management · Advanced · 15 minStrategy & managementLean operations and the seven wa…Read nowLean operations and the seven wastesStrategy & management · Intermediate · 15 minCreative & media productionThe shoot: directing, coverage a…Read nowThe shoot: directing, coverage and continuityCreative & media production · Intermediate · 5 min
English