Chain-of-Thought Prompting
Definition
Chain-of-thought prompting asks a model to work through intermediate reasoning steps before giving its answer, which improves accuracy on multi-step problems such as math, logic and planning.
Diagram
Question: A team buys 3 boxes of 12 pens, hands out 7, then splits the rest equally between 2 offices. How many pens does each office get?
Answer directly
Each office gets 18 pens.
Wrong: a plausible-looking guess with no working.
Think step by step
- 3 boxes × 12 = 36 pens
- 36 − 7 handed out = 29 pens
- 29 ÷ 2 = 14.5, so 14 each, with 1 left over
Right, and the steps show its working.