Chain-of-thought prompting

Asking a model to work through intermediate reasoning steps before giving its final answer, which helps on multi-step problems.

Last updated: · Markdown version

How to apply it in prompts

Use this concept to reduce ambiguity and improve consistency. If you need strict formatting, combine it with a JSON guide and a per-model template.

What it means
Copy-paste example
Problem: [describe the problem]

First, inside <reasoning> tags: restate what is asked, list what is known and what is missing, then work through the logic in small steps.
Then, inside <answer> tags: give only the final answer in one or two sentences.
Before the answer, check your reasoning for a mistake.
Opens the analyzer with the prompt prefilled.
Open in Promptea
FAQ
Does chain-of-thought always improve accuracy?
No. It helps most on multi-step problems. For simple lookups or classification it adds length and cost without much benefit.
Should I show the reasoning to end users?
Usually not. Keep reasoning and answer in separate blocks and display only the answer; use the reasoning for debugging.