Chain of Thought
Also known as: CoT Prompting, Step-by-Step Reasoning
A prompting technique that guides AI models to break down complex problems into intermediate reasoning steps.
A prompting technique that guides AI models to break down complex problems into intermediate reasoning steps.
What is Chain of Thought?
Why It Matters
Use Cases
Mathematical Problem Solving
Breaking down complex calculations into sequential steps for accurate solutions.
Logical Reasoning
Working through arguments or scenarios step-by-step to reach valid conclusions.
Complex Decision Making
Evaluating multiple factors and their relationships before making recommendations.
Optimization Techniques
Metrics
LLM Interpretation
Code Example
// Example of Chain of Thought prompting
const cotPrompt = `
Problem: A store sells notebooks for $4 each and pens for $1 each.
If I buy 3 notebooks and twice as many pens, how much do I spend in total?
Let's think step by step:
1. Cost of notebooks: 3 notebooks × $4 = $12
2. Number of pens: 3 notebooks × 2 = 6 pens
3. Cost of pens: 6 pens × $1 = $6
4. Total cost: $12 + $6 = $18
Therefore, I spend $18 in total.
Problem: A shirt costs $25. During a sale, the price is reduced by 20%.
How much does the shirt cost during the sale?
Let's think step by step:
`;
const response = await llm.generate(cotPrompt);
Related Terms
Prompt Engineering
The practice of designing and optimizing inputs to AI systems to elicit desired outputs or behaviors.
Few-Shot Learning
A technique where AI models learn to perform tasks from a small number of examples provided in the prompt.
LLMs.txt
A standardized file that provides instructions to AI crawlers about how to interpret and use website content.
Structured Data
{
"@context": "https://schema.org",
"@type": "DefinedTerm",
"name": "Chain of Thought",
"alternateName": [
"CoT Prompting",
"Step-by-Step Reasoning"
],
"description": "A prompting technique that guides AI models to break down complex problems into intermediate reasoning steps.",
"inDefinedTermSet": {
"@type": "DefinedTermSet",
"name": "AI Optimization Glossary",
"url": "https://geordy.ai/glossary"
},
"url": "https://geordy.ai/glossary/ai-techniques/chain-of-thought"
}
Term Details
- Category
- AI Techniques
- Type
- technique
- Expertise Level
- strategist
- GEO Readiness
- structured