Prompt Before and After

Updated · 5 min read

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

Audience, example, length and format added
BeforeAfterWhat 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:

  1. Test the prompt on a few real inputs, including a hard one.
  2. Inspect the outputs: what is wrong, missing or inconsistent?
  3. Refine one thing at a time, using the five-part framework from "The Five-Part Prompt Framework".
  4. Save the version that works in your prompt library, with a note on when to use it.

What Prompts Can't Fix

ProblemWhy prompting won't solve itWhat helps instead
Missing knowledgeThe model doesn't know your private or recent factsPaste the source; see "Grounding Prompts in Sources"
Wrong dataA wrong document gives a wrong answerFix the data first
Tasks that need toolsLive prices, exact math on big data, sending emailsApps with search, calculators or code tools
The wrong modelSome tasks need a stronger or specialized modelChoose 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:

  1. What four things did the cashier prompt add?
  2. What are the four steps of refining a prompt?
  3. Name two problems no prompt can fix.

Quick check: prompt before and after

4 questions
1"Tell me about AI" is weak mainly because it lacks...
2What is the best way to refine a prompt?
3A model doesn't know your company's new refund policy. What helps?
4What is a prompt library?

Key Takeaways

Quick reference

StepWhat to do
TestTry the prompt on real and tricky inputs
InspectNote what is wrong or missing
RefineChange one part at a time
SaveKeep working prompts in a library

Was this tutorial helpful?

Lesson 40 of 186