Mission 6 / 8 โค๏ธ Support
MISSION 06

Chain of Thought

Break down complex problems into simple steps. Let the AI think out loud โ€“ and follow its thoughts to better answers.

๐ŸŽฏ Your Learning Goals

You understand why "step by step" produces better results
You can apply different Chain-of-Thought techniques
You use CoT for math, logic, coding, and complex decisions
๐Ÿง 

The Secret of Step-by-Step Thinking

Imagine asking someone: "What is 17 ร— 24?" โ€“ and they immediately answer: "408". Trustworthy? Maybe. But if they say:

"So, 17 ร— 24... I'll calculate 17 ร— 20 = 340, then 17 ร— 4 = 68, and 340 + 68 = 408."

Now you trust them! The same applies to AI. When it shows its thoughts, its answers are not only better โ€“ but also understandable and verifiable.

โšก The Difference: Direct vs. Step by Step

โŒ Without CoT (Direct Answer)
โœ… With CoT (Step by Step)
Question: "A train travels 120 km in 2 hours. How far in 5 hours?"

Answer: "300 km"

No explanation, no understanding, errors possible
Question: "Solve step by step: A train travels 120 km in 2 hours. How far in 5 hours?"

Answer:
1. Speed = 120 km รท 2 h = 60 km/h
2. Distance = 60 km/h ร— 5 h = 300 km
3. Answer: 300 km

Traceable, verifiable, trustworthy

๐Ÿ”— The 4 CoT Techniques

01

Zero-Shot CoT

Simplest Entry

Simply add these magic words:

"Let's think step by step."
"Solve this step by step."
"Show your reasoning."

Works immediately โ€“ no examples needed!

02

Manual CoT

You Control the Steps

Provide the structure for the AI to follow:

"Go through these steps:\n1. Identify the problem\n2. List possible solutions\n3. Evaluate each solution\n4. Recommend the best one"

Maximum control over the thinking process!

03

Self-Consistency

Multiple Checks

Let the AI work through multiple solution paths:

"Solve this in 3 different ways step by step. Then compare the results and choose the most reliable solution."

Especially useful for complex/mathematical problems!

04

Tree of Thoughts

Branching Thinking

Explore different paths systematically:

"Think out loud: Consider different approaches to this problem. For each approach: What are the pros and cons? Which approach is most promising?"

Ideal for creative or strategic problems!

๐Ÿงช The CoT Lab

Select a problem and see how CoT improves the answer:

Select a problem:

A laptop costs $1200 including 20% sales tax. How much does it cost without tax?

Select CoT technique:

Your optimized prompt:

A laptop costs $1200 including 20% sales tax. How much does it cost without tax? Let's think step by step.
How the AI might think:
1

Understand the problem: $1200 is the gross price (incl. 20% tax)

2

Formula: Gross = Net ร— 1.20 โ†’ Net = Gross รท 1.20

3

Calculation: 1200 รท 1.20 = $1000

4

Answer: The laptop costs $1000 without tax

๐ŸŒ CoT in Practice

๐Ÿ“Š

For Math & Calculations

"Calculate the total profit. Show each calculation step and explain the formula."

Always add "Show your work"!

๐Ÿ’ป

For Coding & Debugging

"This function has a bug. Walk through step by step what should happen vs. what actually happens."

Catches logic errors that would otherwise be missed!

๐Ÿ“‹

For Text Analysis

"Analyze this text. Go step by step: 1) Main topic, 2) Tone, 3) Target audience, 4) Key message"

Structured analysis instead of chaotic output!

โš–๏ธ

For Decisions

"I need to choose between [Option A] and [Option B]. First list all relevant factors, then evaluate each option against them."

Rational decisions instead of gut feeling!

โš ๏ธ

Common CoT Mistakes

โŒ
Too many steps at once:
"Analyze this, evaluate that, recommend something, create a plan..."
โ†’ The AI skips steps or gets lost.
โŒ
No numbering:
"Go through all aspects" without clear order.
โ†’ The AI jumps between topics randomly.
โŒ
CoT for simple questions:
"Think step by step: What is the capital of France?"
โ†’ Overkill! CoT is meant for complex problems.
"Chain of Thought is like a GPS: Only useful when the route is complex. For a straight road, you don't need directions."

๐Ÿ”ฅ Pro Tips for CoT

1

Combine with Roles

"You are a math teacher. Explain this calculation step by step, as if you're helping a student."

2

Request Intermediate Checks

"After each step: Briefly check if the result makes sense before continuing."

3

Use for Complex Tasks

CoT is especially worth it for: Multi-step problems, logic puzzles, debugging, mathematical calculations

4

Correct the Thinking Process

If the AI makes an error: "In step 3 you calculated X, but it should be Y. Correct that and adjust the following steps."

โœ… Quick Check

1. When should you use Chain of Thought?

Always, for every question
For complex, multi-step problems
Only for math tasks

2. What is Zero-Shot CoT?

Simply adding "step by step"
Giving multiple examples
manualPrescribing every step yourself

3. What does Self-Consistency do?

speedGenerate the answer faster
multipleCheck and compare multiple solution paths
Make the answer shorter

๐Ÿ“Š Your Mission Progress

0/3 Objectives Completed
0% Total Progress
๐ŸŽฏ Check all learning objectives to complete the mission!
๐Ÿง 

Mission 6 Complete!

You now think not just fast, but also structured!

โญ +100 XP
๐Ÿ† Achievement: "Chain Master"