Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Chain of thought

Also: chain-of-thought

In plain words

Having the model write out its steps before the final answer. It often helps, but the written steps are not proof the answer is right.

The fuller definition

Chain of thought refers to intermediate reasoning steps associated with solving a task. Some methods prompt for written steps; some models perform internal reasoning that is not exposed.

Choosing the next token after “We expect to”
deliver0.46
complete0.24
ship0.15
finalize0.09
other0.06

Invented probabilities. Always picking the top candidate gives the same wording every run; sampling sometimes picks a lower one. Neither setting checks whether the sentence is true.

A concrete example

A worked calculation shows its inputs and arithmetic so a reader can check the result.

The distinction that matters

A generated explanation need not faithfully describe the model's internal computation. Request inspectable evidence rather than assumed access to private thinking.

Related terms

Where it is taught

How models learn from examples

Source and further reading

Hugging Face · LLM course

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC