Agents

Chain-of-Thought

1 min read

Quick Definition

A prompting technique where the model explicitly shows intermediate reasoning steps before reaching a conclusion.

Chain-of-thought (CoT) prompting improves reasoning performance by encouraging step-by-step problem decomposition.

Variants

  • Zero-shot CoT: "Let's think step by step"
  • Few-shot CoT: Examples with reasoning shown
  • Self-consistency: Multiple CoT paths, majority vote

When It Helps

  • Mathematical reasoning
  • Logic problems
  • Multi-step planning
  • Complex analysis
agentspromptingreasoning