What is chain of thought
Chain of thought is when a model solves a task in steps and writes out its reasoning before giving the answer. You usually ask for it with "solve it step by step, show your reasoning, then give the final answer".
It works because each written step becomes part of the text and the next step builds on it: it helps with maths, logic and plans. Reasoning models build such a chain on their own, but answer more slowly. Steps can look logical and still be wrong, so recalculate important numbers yourself.
Covered in the lessonThink step by stepOpen the lesson →
Articles on this topic
- What Is a Neural Network? AI, ML and LLMs Explained Simply
- What Is RAG in AI? Retrieval-Augmented Generation Explained
- System prompt leakage: how chatbots give away their secrets
Free course on this topic: AI basics →
More terms from this course
- What is an AI agent
- What is an AI hallucination
- What is a context window
- What is an embedding
- What is few-shot prompting
- What is a knowledge cutoff
- What is temperature in AI
- What is an LLM (large language model)
- What is machine learning
- What is multimodal AI
- What is a neural network
- What is a prompt
- What is RAG
- What is RLHF
- What is a system prompt
- What is a tokenizer
- What is voice cloning