Prompt Before and After
What does a good prompt look like next to a weak one? Navika, the youngest of the three sisters, is in high school in Dallas. She wants AI explained in a way that makes sense to her, not a textbook paragraph. Her first prompt, "Tell me about AI", gets an essay. Her improved prompt gets exactly what she wanted, built around something she sees every week.
This lesson puts the chapter together: before-and-after prompts, a way to test and refine, and the limits no prompt can fix.
Before and After
| Before | After | What was added |
|---|---|---|
| "Tell me about AI." | "Explain AI to a 15-year-old, using a supermarket cashier as the example. Three short paragraphs, then one question to check I understood." | Audience, example, length, format |
| "Fix my code." | "This Python function should return the average of a list but crashes on an empty list. Explain why, then show a fixed version." | Context, the exact problem, output |
| "Write an email." | "Write a polite two-paragraph email to a customer whose desk lamp arrived late, offering a 10% discount. Sign it from Navika's shop." | Purpose, length, tone, key facts |
| "Summarize this." | "Summarize this report for a busy manager: three bullet points, each under 20 words, then one recommended action." | Audience, format, measurable limits |
Test, Inspect, Refine
Good prompts are rarely right the first time. Improve them like this:
- Test the prompt on a few real inputs, including a hard one.
- Inspect the outputs: what is wrong, missing or inconsistent?
- Refine one thing at a time, using the five-part framework from "The Five-Part Prompt Framework".
- Save the version that works in your prompt library, with a note on when to use it.
What Prompts Can't Fix
| Problem | Why prompting won't solve it | What helps instead |
|---|---|---|
| Missing knowledge | The model doesn't know your private or recent facts | Paste the source; see "Grounding Prompts in Sources" |
| Wrong data | A wrong document gives a wrong answer | Fix the data first |
| Tasks that need tools | Live prices, exact math on big data, sending emails | Apps with search, calculators or code tools |
| The wrong model | Some tasks need a stronger or specialized model | Choose a different model or tool |
Common Mistakes
Changing everything at once. Change one thing per test so you know what helped.
Testing on one easy example. Include a tricky input.
Blaming the prompt for missing facts. No wording can supply facts the model doesn't have.
Interview Corner
How do you improve a weak prompt?
Test it on real inputs, inspect what's wrong, and refine one part at a time, usually by adding the audience, context, constraints or output format. Save the working version in a prompt library.
What can't prompt engineering fix?
Missing or wrong information, and tasks that need tools such as live data, precise calculation or actions. Those need grounding, better data, tools or a different model.
Practice
Exercise: refine three times. Pick one real task. Write a first prompt, test it on three inputs, and refine it three times, changing one thing each time. Record each version and the result in a small table. Which single change helped most? Save the final version in your prompt library.
Check your understanding:
- What four things did the cashier prompt add?
- What are the four steps of refining a prompt?
- Name two problems no prompt can fix.
Key Takeaways
Quick reference
| Step | What to do |
|---|---|
| Test | Try the prompt on real and tricky inputs |
| Inspect | Note what is wrong or missing |
| Refine | Change one part at a time |
| Save | Keep working prompts in a library |
Was this tutorial helpful?