14. Prompt Debugging

Diagnose why an AI answer was weak and improve the prompt deliberately.

By Jacques Botte, founder of Toptronic®. Last updated 12 September 2026.

The lesson

When an AI answer is poor, debug the prompt like firmware: identify missing input, wrong assumptions, vague output format, excessive context, or a model mismatch.

Ask the AI to list assumptions before answering, or ask for a short plan before the final answer. These two checks reveal many hidden failures.

Keep versions of good prompts. A prompt that works repeatedly is a business asset.

Check yourself

Question 1: What should you inspect when an AI answer is weak?
  1. Missing facts, wrong assumptions, vague format, context overload, model mismatch — correct
  2. Only the wallpaper
  3. Only output length
  4. Nothing

Answer: Missing facts, wrong assumptions, vague format, context overload, model mismatch

Weak outputs usually trace back to prompt, context, or model selection issues.

Question 2: Why ask for assumptions before the answer?
  1. It makes the answer legally binding
  2. It deletes context
  3. It starts a server
  4. It reveals what the model is guessing — correct

Answer: It reveals what the model is guessing

Visible assumptions are easier to correct.

Question 3: Why keep versions of good prompts?
  1. They replace all testing
  2. They hide mistakes
  3. They help reproduce success and diagnose regressions — correct
  4. They slow the app

Answer: They help reproduce success and diagnose regressions

Prompt versioning turns learning into a repeatable process.

← Previous lesson · All 83 lessons · Next lesson →

The full course — 83 lessons and 249 quiz questions — ships inside the app. Get TPEE to study it offline.