AI
Chain-of-Thought Prompting
A practical guide to understanding what chain-of-thought prompting is and how to use it to improve AI reasoning.
What chain-of-thought prompting does, when it helps, and how product and design teams can use it to get more reliable outputs from AI on complex tasks.
What it is
Chain-of-thought prompting is a technique where an glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term is instructed to reason through a problem step by step before giving a final answer, rather than jumping directly to a conclusion.
By making the reasoning glossaryProcessA process is a defined sequence of steps used to achieve a specific outcome.Open glossary term explicit, the glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term is less likely to skip steps, miss important considerations, or produce a confident but incorrect answer.
This approach works because language glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term generate text sequentially. When prompted to reason through a problem, each step in the reasoning glossaryProcessA process is a defined sequence of steps used to achieve a specific outcome.Open glossary term provides glossaryContextThe surrounding conditions that shape behaviour and decisions.Open glossary term for the next, producing a more coherent and accurate final answer than the model would reach if it attempted to produce the answer immediately.
Chain-of-thought prompting is particularly effective for multi-step problems, logical reasoning tasks, and any situation where getting to the right answer requires working through intermediate steps correctly.
When to use it
Understand when chain-of-thought prompting adds value.
It is less necessary when:
It is most useful when:
Key takeaway
For complex tasks, chain-of-thought prompting is one of the most effective techniques for improving accuracy without changing the model or adding examples.
How it works
Understand the basic mechanism. Chain-of-thought prompting can be activated in two ways. Zero-shot chain-of-thought adds a simple instruction — such as "think through this step by step" — to the glossaryPromptA prompt is the input or instruction given to an AI system to guide its output or response.Open glossary term. Few-shot chain-of-thought includes examples of step-by-step reasoning in the prompt, showing the glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term the glossaryPatternA reusable solution to a common design problem.Open glossary term to follow.
Both approaches signal to the glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term that it should articulate its reasoning rather than jumping to a conclusion. The resulting output includes both the reasoning glossaryProcessA process is a defined sequence of steps used to achieve a specific outcome.Open glossary term and the final answer.
This makes the glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term's reasoning visible, which also makes it easier to identify where it went wrong when errors occur.
What this means for designers and product teams. Chain-of-thought is a simple glossaryPromptA prompt is the input or instruction given to an AI system to guide its output or response.Open glossary term modification that can meaningfully improve AI quality on reasoning tasks. It requires no technical implementation — just a change to how the prompt is written.
Displaying the reasoning glossaryProcessA process is a defined sequence of steps used to achieve a specific outcome.Open glossary term to users — or hiding it in the glossaryBackendThe backend is the part of a system that handles data processing, logic, and server-side operations.Open glossary term and showing only the conclusion — is a design decision with experience implications. In some glossaryContextThe surrounding conditions that shape behaviour and decisions.Open glossary term, visible reasoning builds trust. In others, it creates cognitive overhead.
What to look for
Focus on:
Where it goes wrong
Most issues come from: Chain-of-thought improves reasoning quality on average — but it can also produce longer, more confident-sounding wrong answers.
What you get from it
Understanding chain-of-thought prompting gives you:
Key takeaway
Asking an AI to think out loud often produces better answers. When accuracy on a complex task matters, chain-of-thought is one of the simplest improvements you can make.
FAQ
Common questions
A few practical answers to the questions that usually come up around this method.
What is chain-of-thought prompting?
It is a technique where an glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term is prompted to reason through a problem step by step before giving a final answer. Rather than jumping directly to a conclusion, the model articulates its reasoning, which typically produces more accurate and reliable results on complex tasks.
How do I use chain-of-thought prompting?
The simplest approach is to add a phrase like "think through this step by step" to your glossaryPromptA prompt is the input or instruction given to an AI system to guide its output or response.Open glossary term. More sophisticated approaches include providing examples of step-by-step reasoning to show the glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term the glossaryPatternA reusable solution to a common design problem.Open glossary term to follow. Both methods signal to the model that it should make its reasoning explicit.
Does chain-of-thought prompting always improve accuracy?
It improves accuracy on tasks that require multi-step reasoning. For simple tasks, it adds length without meaningful improvement. Test whether it helps on your specific task rather than applying it universally.
Should I show the reasoning to users?
It depends on the glossaryContextThe surrounding conditions that shape behaviour and decisions.Open glossary term. Showing reasoning can glossaryBuildA build is the process of compiling and packaging code into a runnable application.Open glossary term glossaryTrustUser confidence that a product, service, or organisation will do what it promises.Open glossary term, help users evaluate the answer, and make errors more apparent. But it can also create cognitive overhead if the reasoning is lengthy and the user just needs the conclusion. In many products, the reasoning is processed in the backend and only the final answer is shown.
Can chain-of-thought reasoning be wrong?
Yes. The glossaryModelA model is a system or representation used to process data and generate outputs, often trained to perform specific tasks.Open glossary term can produce a plausible-looking reasoning chain that glossaryLeadA lead is a potential customer who has shown interest in a product or service, typically by providing contact information or engaging with content.Open glossary term to an incorrect conclusion. Visible reasoning makes it easier to spot where the error occurred, but it does not guarantee that the reasoning is correct. The output should still be validated where accuracy is important.
Quick take
Asking an AI to show its reasoning often produces better answers than asking it to jump straight to a conclusion.
Related Services