Flashcard: what is chain-of-thought (CoT) prompting, in one sentence?
Chain-of-thought prompting asks the model to write out its reasoning steps before the final answer, decomposing multi-step problems into sequential sub-problems each step can build on.
Imagine asking a student to solve 23 times 47 in their head and just shout the answer. Most people would get it wrong. Now ask the same student to show their working: 23 times 40 plus 23 times 7, then add them. Far more likely to be correct. The model works the same way. When you force it to write out the steps before the final answer, each step becomes input for the next step, and the model only has to do one small piece of reasoning at a time. The magic phrase that triggers this is something like Let us think step by step or Show your work first. The trick was discovered around 2022 and has become a default pattern for any multi-step problem.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: define CoT as reasoning before answer, explain the autoregressive mechanism, contrast zero-shot vs few-shot CoT, name self-consistency and tree of thoughts variants, cover when not to use, connect to modern reasoning-mode models.
Real products, models, and research that use this idea.
- The original 2022 CoT paper from Wei et al. at Google Brain showed PaLM-540B going from 17 to 56 percent on GSM8K math word problems with explicit CoT prompting.
- Kojima et al.'s 2022 zero-shot-CoT paper showed that just adding 'Let's think step by step' unlocks reasoning on InstructGPT without any few-shot examples.
- OpenAI o3 and Claude Opus 4.7 extended-thinking mode bake CoT into the model's hidden reasoning loop, with the model generating reasoning tokens that are billed but not shown by default.
- LangChain's ReAct agent and most tool-using agent frameworks rely on CoT as the reasoning substrate for the Thought-Action-Observation loop.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does self-consistency CoT differ from plain CoT, and what does it cost?
QWhy do frontier reasoning models hide the CoT tokens from the user but still bill for them?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Using CoT on every prompt as a default, including simple recall tasks where it just adds latency and cost without improving accuracy.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.