What is chain-of-thought (CoT)?

Chain-of-thought, abbreviated CoT, is the sequence of intermediate reasoning steps that a language model generates before producing its final answer.

Instead of jumping directly from a question to an answer,

the model produces a sequence such as: