Change the prompt before you retry
In this lesson we take a prompt that gets a wrong summary through three rounds. The first answer leaves out the decisions of a meeting, and the reflex is to press regenerate. We name what is missing instead and change one line of the prompt. After the second run we compare the two answers, and we do that once more. At the end the line we had to type twice moves into a saved template.
You need any chat assistant. Every response shown here is illustrative: the author wrote it to show the pattern, and the component says so. Your model gives a different text, and the comparison that matters is between your own rounds.
The summary that skipped the decisions
Section titled “The summary that skipped the decisions”Here are the notes we work with. They’re fictional, and every round uses them unchanged. Read them once, so you can judge each answer later.
Team meeting, 6 October. Present: Anna, Ben, Chloe, Tom.
Ben walked through the numbers of the pilot. Sign-ups are 30 percent above the plan and support tickets are double. Most tickets are about the invoice page. Chloe thinks the page needs a rewrite and Tom thinks a better help text is enough. After some discussion the team decides to do the help text first and look at the ticket numbers again on 20 October. Tom writes the help text.
Anna raised the question of the second pilot region. The team decides not to start it before the invoice tickets come down. Anna tells the regional lead.
Ben asked whether the weekly status mail can go out on Thursday instead of Friday. Nobody objects. Ben changes the schedule.
Chloe mentioned the new logo drafts. The team looks at them next week.
Paste the notes into your chat tool with a request above them. This one already has an instruction, a fenced context, a reader and a format, as the lesson on instruction, context, and format asks.
Summarize the meeting notes between the triple quotes for a colleague who missed the meeting. Write five bullets, each under 20 words, as plain text.
""" [the notes, pasted in full] """
- Pilot sign-ups are 30 percent above plan, and support tickets have doubled.
- Most support tickets concern the invoice page.
- Chloe and Tom disagree on whether the page needs a rewrite or better help text.
- Anna raised the question of starting a second pilot region.
- Chloe shared new logo drafts, which the team reviews next week.
This response is illustrative, like every one on this page. It is five bullets under 20 words, and it follows the format. It also misses the point. The colleague who missed the meeting learns what was talked about and nothing about what was decided. Help text first, no second region yet, status mail on Thursday: none of the decisions made the list, and the logo drafts, the one item without a decision, did.
The reflex here is to press regenerate. Do that once, so you can see what it gives. On a first turn, pressing regenerate and sending the same prompt in a fresh chat are the same draw, so either works here.
[the same prompt, sent again in a fresh chat]
- Pilot sign-ups are 30 percent over plan, and support tickets doubled.
- The invoice page causes most of the tickets.
- The team debated rewriting the invoice page versus improving its help text.
- Anna asked about a second pilot region, to be revisited later.
- Ben proposed moving the weekly status mail to Thursday.
The words changed. The logo bullet is gone and the status mail appeared, described as a proposal rather than as the decision it was. The help text decision and the second-region decision are still missing. You now have two summaries of the discussion and still don’t know which one to send.
Name the gap, change one line
Section titled “Name the gap, change one line”Iteration is improving a result by changing the prompt after reading the output, rather than sending the same prompt again in the hope of a better draw. The first step is to say what is wrong with the output, in one sentence, as a fact about the text. “It’s not great” gives you nothing to change. “It lists what was discussed and leaves out what was decided” points at a line the prompt doesn’t have.
Add that one line, change nothing else, and run it on the same notes.
Summarize the meeting notes between the triple quotes for a colleague who missed the meeting. List every decision as its own bullet, starting with “Decided:”. Write five bullets, each under 20 words, as plain text.
""" [the notes, pasted in full] """
- Pilot sign-ups are 30 percent above plan, but support tickets have doubled, most about the invoice page.
- Decided: improve the invoice help text first, then review ticket numbers on 20 October.
- Decided: do not start the second pilot region until invoice tickets come down.
- Decided: the weekly status mail moves from Friday to Thursday.
- Chloe showed new logo drafts, which the team reviews next week.
Put this next to the first round. Every decision is there, each on its own line, and the discussion shrank to the one bullet that gives the decisions their reason. One sentence of prompt did that. The regenerate round changed the wording of the same gap, and the added line closed it.
One more change, then compare
Section titled “One more change, then compare”Read the new answer as the colleague would. They know what was decided. They don’t know who does what next: Tom writes the help text, Anna tells the regional lead, and Ben changes the schedule. The notes say all three, and the summary says none of them.
That is the next gap, and it gets its own round. It is also a familiar one. Last week’s summary of the previous meeting skipped the decisions and the owners too, and both fixes went into the chat and closed with it. Add one line about the owner, keep the “Decided:” line from the last round, and run it again.
Summarize the meeting notes between the triple quotes for a colleague who missed the meeting. List every decision as its own bullet, starting with “Decided:”, and end each decision with the name of the person who acts on it. Write five bullets, each under 20 words, as plain text.
""" [the notes, pasted in full] """
- Pilot sign-ups are 30 percent above plan, but support tickets have doubled, most about the invoice page.
- Decided: improve the invoice help text first, review tickets again on 20 October. Tom.
- Decided: no second pilot region until invoice tickets come down. Anna tells the regional lead.
- Decided: weekly status mail moves from Friday to Thursday. Ben.
- Chloe showed new logo drafts. The team reviews them next week.
Compare with the previous round, and only with the previous round. The decision bullets are the same three facts with a name at the end, and the other two bullets barely moved. That is what you want from one change: the difference between the two answers comes from the one change you made. You know that the owner line works, and next week’s prompt can keep it [1].
Why the retry gives the same class of mistake
Section titled “Why the retry gives the same class of mistake”In the lesson on how models work you saw that the model scores every candidate for the next token and picks one, and that the input fixes the scores. The prompt is that input. Send the same prompt twice and the model draws twice from the same distribution. The wording differs, and the things the prompt made likely stay likely. Your first prompt made “what was discussed” likely, because that’s what most summaries of most notes contain, and it said nothing that made “what was decided” likely. A retry moves within that distribution. To move the distribution itself you change the prompt.
Any gap in the instruction behaves this way. A prompt that doesn’t say who the reader is gets a general reader on every run, and when a prompt doesn’t name the format, the format is the model’s choice and varies between runs. The retry that happens to come out right is a draw from the tail, and the next run falls back into the middle. So the correction goes into the prompt, where it holds on every run [2].
Four tries
Section titled “Four tries”A colleague summarizes weekly meeting notes with a chat assistant. The prompt asks for five bullets for a colleague who missed the meeting and says nothing about decisions.
A colleague pressed regenerate until the summary included the decisions. It took four tries, and they expect to do the same next week. Which explanation fits what happened?
What changes between one run and the next, and what stays the same?
Everything at once
Section titled “Everything at once”Once you see what is wrong, the temptation flips: fix everything you can think of in one go.
One change per round feels slow on the first prompt and pays back on every prompt after it. You end up knowing what each line does, and a prompt you understand is one you can shorten or hand to a colleague [3].
The summary has no decisions
Section titled “The summary has no decisions”A learner asked a chat assistant to summarize meeting notes in five bullets for a colleague who missed the meeting. The answer lists what was discussed and none of the three decisions.
The summary lists what was discussed and none of the decisions. What do you do next?
Which option changes the input the model reads, and by how much?
Move the fix into a template
Section titled “Move the fix into a template”Look back at the rounds. The “Decided:” line and the owner line are each the second time you had to ask for them. Last week’s notes got the same first summary and the same two fixes, typed into the chat, and lost when the chat closed. A fix you type in the chat is there for that session. A fix in the prompt is there for every run.
A prompt template is the prompt you keep: the lines that have shown what they fix, with a marker where the material goes. Save it in a note or a text file, and paste it in every week. This is the template after the three rounds on this page, with both lines that came up for the second time.
Summarize the meeting notes between the triple quotes for a colleague whomissed the meeting. List every decision as its own bullet, starting with"Decided:", and end each decision with the name of the person who acts onit. Write five bullets, each under 20 words, as plain text.
"""[paste the notes here]"""A line goes into the template when you had to make the correction twice. One correction may be about one text. The same correction on two texts is about the prompt, and the prompt is where it goes. A line stays out for the reason the pitfall gives: you added it without seeing what it fixed. When the template grows, it grows by one tested line at a time.
Change, keep, or leave it
Section titled “Change, keep, or leave it”A learner summarizes weekly meeting notes with a chat assistant and keeps a saved prompt they paste in every week. Each item describes something they see after a run.
How many times has this correction come up, and does the answer meet the prompt as it stands?
What do you do after this run?
Section titled “What do you do after this run?”A learner writes a weekly project update with a chat assistant from a saved prompt they paste in each week. Each row is something they notice after a run.
Match each observation to what you do next.
Is it a new gap, a correction you have made before, or no gap at all?
The summary without owners
Section titled “The summary without owners”A chat assistant summarizes a project meeting from a prompt that asks for five bullets and never mentions who owns each action. The summary it gave has no owners.
The summary lists the actions and none of their owners. Which two steps are good ones?
Which steps change what the prompt makes likely, and which let you see what the change did?
One change per round
Section titled “One change per round”The lesson changes one line of a prompt per round and compares each answer with the one before.
Why does the lesson change only one line of the prompt in each round?
After a round, what do you need to know in order to keep a line?
Exercise
Write eight to ten lines of fictional meeting notes with at least two decisions and one open question, or reuse the notes from this page. Send them with a one-line summary request and read the answer. Then take it through three rounds: name one gap in one sentence, change one line of the prompt, run it in a fresh chat, and compare with the round before. Keep a three-line log, one line per round, in the form “gap: …, change: …, result: …”. Fifteen minutes is enough. Doing this once with a log is what turns “press regenerate” into “change the prompt” the next time an answer is wrong.
A good result is a log where every line names a gap in the text, one change, and what the change did to the answer, and a final prompt in which every line you added has a line in the log. Which of your three changes would you have skipped if you had rewritten the prompt in one go?
Stretch: Send the finished prompt with a second set of notes you write yourself. Which line of the template holds, and which one needs a fourth round?
Recap
- A retry draws another sample from the same distribution. The wording changes, and the gap the prompt left stays, because the prompt is what makes one answer more likely than another.
- Name what is wrong with the output in one sentence, as a fact about the text. That sentence points at the line the prompt is missing.
- Change one thing per round and compare with the round before. The difference then has one cause, and you know which line to keep.
- A correction you made twice goes into the prompt you keep. A saved template grows by one tested line at a time and never by a rewrite.
You can now
- Improves a result by changing the prompt, not by retrying
References
Section titled “References”- DeepLearning.AI. ChatGPT Prompt Engineering for Developers. DeepLearning.AI. Course.
DLAI-1 - Anthropic. AI Fluency: Framework and foundations. Claude Academy. Course.
Academy ai-fluency-framework-foundations - DeepLearning.AI. AI Prompting for Everyone. DeepLearning.AI. Course.
DLAI-3