Chain-of-Thought (CoT)

Chain-of-thought prompting asks the model to reason step by step before giving an answer. It is useful for multi-step reasoning, calculations, and transparent decision workflows.

Intermediate Reasoning enhancement

When to use

Use it for math, logic, multi-step classification, and decisions where the reasoning path should be inspectable.

Prompt example
Task: Apply Chain-of-Thought (CoT) to the user's request.

Context: describe the input, constraints, target audience, and desired format.

Instruction: be explicit, keep the output structured, and state any assumptions.
Output example
Structured answer based on the requested technique.

Key result: the model follows the stated task and format.
Notes: validate the output before using it in production.

Best practices

Common pitfalls