Session 06 · Prompt Engineering · 2026

Chain-of-Thought PromptingChain-of-Thought प्रॉम्प्टिंगChain-of-Thought ਪ੍ਰੌਂਪਟਿੰਗ

Generative AI & Prompt Engineering — TARAhut AI Labs

4 words that change everything: "Think step by step." Chain-of-thought prompting teaches AI to REASON, not just respond. Watch wrong answers become right answers. "Sochde jao, kadam kadam — AI nu sochna sikhao."

4 शब्द जो सब बदल दें: "Think step by step." Chain-of-thought AI को सोचना सिखाता है।

4 ਸ਼ਬਦ ਜੋ ਸਭ ਬਦਲ ਦੇਣ: "Think step by step." Chain-of-thought AI ਨੂੰ ਸੋਚਣਾ ਸਿਖਾਉਂਦਾ ਹੈ।

Section 01

AI Fails at Math — Until You Add 4 Words

AI Math में Fail — जब तक 4 शब्द न जोड़ो

AI Math ਵਿੱਚ Fail — ਜਦ ਤੱਕ 4 ਸ਼ਬਦ ਨਾ ਜੋੜੋ

"If a shirt costs ₹800 after a 20% discount, what was the original price?" GPT-4o gets this wrong without CoT. Add "Think step by step" and it gets it right. Those 4 words change everything. "4 shabd naal galat jawab sahi ho jaanda hai."

Without CoT: Wrong

"A shirt costs ₹800 after 20% discount. Original price?"
AI might answer: "₹960" (20% of 800 = 160, so 800+160=960).

✕ Wrong! If original is ₹960, 20% off = ₹768, not ₹800.

✕ Incorrect

With CoT: Correct

"Think step by step. A shirt costs ₹800 after 20% discount."
Step 1: 800 = original x (1 - 0.20)
Step 2: 800 = original x 0.80
Step 3: original = 800 / 0.80 = ₹1,000

✓ Correct
💡

Why CoT Works

Normally, AI jumps from question to answer in one leap. CoT forces it to show its work, step by step. Each step checks the previous one. Like showing your work in math class. "Jive math class vich kaam dikhana — har step check hunda hai."

🧪 Experiment: CoT vs No-CoT on Math

📋 Click to copy: 3 tricky math problems — test CoT vs no-CoT

🧪 Experiment: CoT on Logic Puzzles

📋 Click to copy: 3 logic puzzles requiring chain-of-thought reasoning
You've seen the power of 4 words. Now let's go deeper.

Next: The 3 levels of chain-of-thought prompting.

TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
✅ The magic works! Now master 3 levels.
Section 02

Three Levels of CoT

From "just add 4 words" to providing complete reasoning structures. Each level gives you more control. "3 levels — har level zyada control dinda hai."

LEVEL 1💬

Zero-Shot CoT

Just add Think step by step or Let's work through this systematically. No examples needed. Easiest to use, surprisingly effective. Works for 70% of reasoning tasks. "Sirf 4 shabd jod do."

LEVEL 2📝

Manual CoT

You provide the reasoning structure: First, identify X. Then, calculate Y. Then, compare Z. Finally, conclude. You define the steps, AI follows them. More reliable for complex tasks. "Tusi steps define karo, AI follow kare."

LEVEL 3📚

Structured CoT

You provide a complete worked example WITH reasoning, then ask AI to follow the same pattern for a new problem. Most reliable, highest quality. "Pehle example dikhaao, phir nava problem do."

🧪 Lab: All 3 CoT Levels on One Problem

📋 Click to copy: Same problem, 3 CoT levels — compare quality
💡

When CoT Matters Most

Use CoT for: Math, logic, multi-step analysis, decision-making, code debugging, legal reasoning, financial projections.
Skip CoT for: Simple facts ("What is the capital of France?"), translation, summarization, creative writing. "Jado sochna zaruri hai, CoT use karo. Jado simple kaam hai, zarurat nahi."

You now know 3 levels of CoT. Use Level 1 daily, Levels 2-3 for complex tasks.

Next: Tree-of-Thought — explore MULTIPLE reasoning paths.

TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
💪 50% through! Now: multiple reasoning paths.
Section 03

Tree-of-Thought — Multiple Paths

CoT is linear: one path of reasoning. Tree-of-Thought (ToT) explores MULTIPLE paths simultaneously, then picks the best one. Like a chess player thinking 3 moves ahead on different strategies. "CoT = ik raasta. ToT = 3 raaste explore karo, sabton vadiya chuno."

🧪 Lab: Tree-of-Thought for Strategic Decisions

📋 Click to copy: Tree-of-Thought career analysis — 3 paths compared

🧪 Lab: CoT for Real Punjab Business Analysis

📋 Click to copy: CoT analysis — AI farming for a Punjab family
CoT for single-path reasoning, ToT for multi-path strategic thinking.

Next: Apply CoT/ToT to YOUR domain problems.

TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
🔥 67% done! Make it personal.
Section 04

CoT in Your Domain

Apply chain-of-thought to YOUR complex tasks. Find 3 problems where AI gives wrong/weak answers and fix them with CoT.

🧪 Apply CoT to Your Problems

📋 Click to copy: Apply CoT to YOUR domain problems

✅ Session 6 Mastery Checklist

Tap items to check them off
"CRISP gives structure. CoT gives reasoning. Together, they are the foundation of professional prompt engineering."
TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
🧠 CoT quiz!
Section 05

Test Your CoT Knowledge

8 questions from a pool of 16.

TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
Section 06

Session 6 Complete!

सेशन 6 पूरा!

ਸੈਸ਼ਨ 6 ਮੁਕੰਮਲ!

🎓

Key Takeaways

✅ "Think step by step" fixes most reasoning errors
✅ 3 CoT levels: zero-shot (easy), manual (structured), structured (example-based)
✅ Tree-of-Thought explores multiple strategies before choosing
✅ CoT + CRISP = professional-grade prompt engineering
✅ Use CoT for reasoning, skip for simple tasks

Homework

🔮

Preview: Session 7 — Few-Shot Prompting

"Kal assi AI nu examples naal sikhaange. Few-shot prompting naal classification, extraction, te formatting tasks dramatically better hunde ne. 3-5 examples deo, AI pattern follow kare."

TARAhut AI Labs · tarahutailabs.com · +91 92008-82008
Session 7: Few-Shot Prompting →