What is chain-of-thought prompting?
Chain-of-thought prompting asks a language model to work through a problem in intermediate steps before giving its final answer, which often improves results on multi-step tasks.
Also called: chain of thought, CoT, step-by-step reasoning
How it works
Instead of asking for an answer directly, the prompt asks the model to reason step by step, or shows examples that include worked reasoning. Writing out the steps gives the model more room to handle problems with several parts, such as math, logic or rule checks.
Many reasoning models now do this by default, producing internal reasoning before a reply. The written steps can help a reviewer follow the model's path, but they are not a guaranteed account of how the model reached its answer.
Why it matters for risk decisions
Risk questions often have several parts: does the business address match the registry, is the website consistent with the stated industry, do the owners appear on a watchlist? Asking a model to check each point in turn tends to give more complete and reviewable answers than one-line verdicts.
The reasoning can also feed a case file, so a human reviewer sees which facts the model relied on. That supports explainable decisions, as long as each stated fact is verified against the source data.
Cautions
- Fluent reasoning can still contain a false step, so check the facts, not just the logic.
- More steps mean more tokens, which adds cost and delay.
- Do not show raw reasoning to end users if it may contain sensitive data or internal rules.
- Measure accuracy with and without it; it does not help every task.
Example
A hypothetical onboarding team asks a model to review a new merchant. With a step-by-step prompt, the model notes that the website sells electronics, the stated category is consulting, and the domain is two days old. The reviewer confirms each point and escalates the case.
Related terms
- Reasoning modelA reasoning model is a language model trained to work through problems in internal steps before answering, trading extra time and compute for better results on complex tasks.
- Prompt engineeringPrompt engineering is the practice of writing and testing the instructions, context and examples given to an AI model so that it produces accurate, useful and consistent output.
- Explainable AI (XAI)Explainable AI is the set of methods that show why a model made a decision, in terms people can understand, check and act on.
- AI hallucinationAn AI hallucination is output from an AI model that sounds plausible but is false or not supported by its inputs, such as an invented fact, source or figure.
- Token (AI)In AI, a token is the small unit of text, often a word or part of a word, that a language model reads and writes. Model limits and usage prices are usually counted in tokens.