AI Glossarytechniques
Chain of Thought (CoT)
A prompting technique that improves AI reasoning by instructing the model to break down complex problems into intermediate steps before giving a final answer.
How It Works
Chain of Thought prompting dramatically improves accuracy on tasks requiring logic, math, or multi-step reasoning. Instead of asking "What is 23 * 17?", you prompt: "Think step by step. What is 23 * 17?" The model then shows its work: "23 * 17 = 23 * 10 + 23 * 7 = 230 + 161 = 391." This simple technique can turn wrong answers into correct ones.
Modern models like GPT-5.2-pro and Claude Opus 4.6 have built-in reasoning modes that automatically use chain-of-thought. GPT-5.2-pro offers reasoning effort levels (low/medium/high), and Claude Opus 4.6 has adaptive thinking. These handle CoT internally, so you do not always need to prompt for it explicitly.
In production, CoT is most valuable for: classification with explanations (the model explains why it chose a category), complex data analysis (step-by-step calculations), and debugging (walking through code logic). The tradeoff is more output tokens, which means higher cost and latency.
Common Use Cases
- 1Math and logic problems
- 2Complex classification with reasoning
- 3Multi-step data analysis
- 4Debugging and code review
- 5Decision-making with explanations
Related Terms
Large Language Model (LLM)
A neural network trained on massive text datasets that can generate, understand, and reason about human language.
Prompt EngineeringThe practice of crafting effective instructions for AI models to produce desired outputs consistently.
Few-Shot LearningA prompting technique where you provide a small number of input-output examples in the prompt to teach the model the desired behavior.
Zero-Shot LearningThe ability of an AI model to perform a task based solely on instructions, without any training examples provided in the prompt.
Need help implementing Chain of Thought?
AI 4U Labs builds production AI apps in 2-4 weeks. We use Chain of Thought in real products every day.
Let's Talk