🛠️Chain-of-Thought Prompting
Also known as Chain of Thought, CoT Prompting, Step-by-Step Prompting
You ask a model to show its steps first, then give the answer.
Think of it like
Think of it like a teacher who says, show your work. You get the sum right more often.
Example
Jack asks how much 12 pens cost if a pack of 3 costs $2. The quick answer says $6. With a request to think it through, the model works out 4 packs and says $8.
Why it matters
It is one of the simplest ways to cut errors on hard questions.
Definition
Example code
text
A pack of 3 pens costs $2. How much do 12 pens cost?
Think it through step by step, then give the final answer on its own line.Common mistake
Key takeaways
- 1Steps before answer. Show the work.
- 2More room to think. More tokens to reason.
- 3Built into some models. Reasoning models do it.