Skip to main content
Prompting & Model Control

Chain of Thought (CoT)

  • Updated
  • By the Groovy Web team
  • 2 min read

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

← More in Prompting & Model Control  ·  All 107 glossary terms

Start a Project

Got an Idea?
Let's Build It Together

Tell us about your project and we'll get back to you within 24 hours with a game plan.

Schedule a Call Book a Free Strategy Call
30 min, no commitment
Response Time

Mon-Fri, 8AM-12PM EST

4hr overlap with US Eastern
500+ Projects Delivered
18+ Years Experience
4 Countries

Follow Us

1-week risk-free trial, keep the code

Hire an AI-First Engineering Team
Production-Grade. Your US Hours.

For startups & product teams

One senior engineer, AI-accelerated. Owns architecture, security, and the last 20% AI tools leave broken. No recruitment, no ramp-up.

Trusted by 200+ startups worldwide

Production-grade delivery
4hr live US overlap
Start in 48 hours

No long-term commitment · 100% IP yours · Cancel anytime