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?
- Missing facts, wrong assumptions, vague format, context overload, model mismatch — correct
- Only the wallpaper
- Only output length
- 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?
- It makes the answer legally binding
- It deletes context
- It starts a server
- 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?
- They replace all testing
- They hide mistakes
- They help reproduce success and diagnose regressions — correct
- 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.