Generation behavior · about 15 minutes of study

Hallucination

A hallucination is generated content that is unsupported or false in the task context. A confident style does not make it reliable.

Before you start: Review Context window first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Question

Identify the factual claim being requested.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

A student inventing a page number rather than admitting the book is missing may sound convincing. A system should expose the missing evidence instead.

See a concrete example

A lookup returns not_found. The answer “I approved and filed it” contradicts the observed result and must not be accepted as execution success.

A claim to question

Low temperature, RAG and a strong system prompt do not eliminate hallucination.

Try before revealing the answer

Write an answer for a missing claim record and name the next safe action.

Show the worked answer

Say that no authorized record was found, ask for a corrected identifier or route to support. Do not invent status, payment or successful submission.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Attention Is All You Need

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.