What is Chain of Thought (CoT)? Chain of Thought (CoT) prompting asks a language model to write out its reasoning step by step before giving a final answer, which improves results on multi-step problems. Chain of Thought (CoT) explained With Chain of Thought prompting you ask the model to show its working. Instead of asking "What is 17 x 24?", you ask for the steps: 17 x 20 = 340, 17 x 4 = 68, 340 + 68 = 408. Writing the steps gives the model room to reach the right answer on problems that need several moves.The effect is documented. Wei and colleagues showed that prompting a 540-billion-parameter model with eight chain of thought examples reached state-of-the-art accuracy on the GSM8K maths benchmark (Wei et al., 2022). Kojima and colleagues found that adding "Let's think step by step" raised one model's accuracy on MultiArith from 17.7% to 78.7% and on GSM8K from 10.4% to 40.7% (Kojima et al., 2022).Variations include zero-shot CoT (just "think step by step"), few-shot CoT (examples that include the reasoning) and Tree of Thought (exploring several reasoning paths). Gains depend on the model and the task, and many modern reasoning models do this internally, so test before adding it to a prompt. How Groovy Web uses Chain of Thought (CoT) We use step-by-step reasoning in agents that make multi-step decisions, and we test each prompt on real examples to confirm it helps before it ships. Explore our Generative AI Development service → Chain of Thought (CoT): common questions How do I use chain-of-thought prompting? Ask the model to reason step by step before it answers, or include one or two worked examples that show the reasoning. For example, add "Think step by step" to a multi-step question. When does chain of thought help most? On tasks with several reasoning steps, such as math, logic, debugging and multi-step decisions. It adds little for simple lookups, and the extra reasoning text makes responses longer and more costly. What is the difference between chain of thought and prompt chaining? Chain of thought is a single prompt that asks the model to reason in steps. Prompt chaining splits a task into several separate prompts and feeds the output of one into the next. The two can be combined. Related terms Prompt Engineering Prompt engineering is the practice of designing and testing the instructions, examples and context given to a language model so it produces accurate, consistent and useful output. LLM (Large Language Model) A large language model (LLM) is a neural network trained on very large amounts of text to predict the next token, which lets it write, summarise, translate, answer questions and write code. Agentic AI Agentic AI describes AI systems that plan, use tools and take multi-step actions toward a goal, rather than only answering a single question. Prompt Chaining A technique where the output of one AI request becomes the input to another, breaking complex tasks into manageable steps and improving accuracy and reasoning. Structured Output An LLM feature that constrains the model to return JSON matching a schema you specify: no free-form text, no parser errors. Context Engineering The discipline of designing what context an LLM sees on each call (retrieved chunks, tool outputs, agent memory, system rules, examples) to produce reliable outputs. ← More in Prompting & Model Control · All 107 glossary terms