Chain-of-Thought
A prompting technique in which the model is asked to reason step by step. It writes the intermediate steps first and only then gives the final answer.
What It Is
Usually a model tries to give an answer straight away. Chain-of-Thought (CoT) changes that behaviour: the model first explains how it is thinking and only then answers.
How It Works
Instead of:
What is 15% of 240?
You ask:
What is 15% of 240?
Solve it step by step and explain every step.
The model answers:
1. 1% of 240 is 2.4.
2. 15% is 15 × 2.4.
3. 15 × 2.4 = 36.
Answer: 36.
Types of Chain-of-Thought
Zero-shot CoT
We simply add a phrase:
Think step by step.
Few-shot CoT
We show an example with a detailed solution and then give our own task.
When It Helps
- mathematics;
- comparing options;
- analysing text;
- writing code.
Related Concepts
- Reasoning Model — a model that reasons on its own.