Flashcard: what is chain-of-thought (CoT) prompting, in one sentence?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
What an interviewer would ask next. Try answering before peeking at the approach.
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.