Skip to content
AI Stack Nest
BeginnerLesson 3 of 3 · 1 min read

Check and improve your prompt

A simple loop for testing a prompt, reading the result critically and making one change at a time.

The improvement loop

A first prompt is rarely the best one. Treat prompting as a short loop:

  1. Write the prompt using the parts from the first lesson.
  2. Run it and read the answer carefully.
  3. Decide what is wrong: too long, wrong tone, missing details, or invented facts.
  4. Change one thing and run it again.

Changing only one thing at a time is the key. If you rewrite the whole prompt, you will not know which change made the answer better or worse.

Common fixes

  • Answer too long: add a length, such as "in 100 words".
  • Wrong tone: name the tone and the audience.
  • Missing details: paste the source text into the prompt as context.
  • Made-up facts: add "Use only the text below. If the answer is not there, say you do not know."

Always check important facts

AI models can produce answers that sound confident but are wrong. These are called hallucinations. For anything that matters, such as numbers, dates, legal or medical points, check a reliable source yourself.

Keep a prompt notebook

When a prompt works well, save it with a note about what it was for. Over time you will build a small library of prompts you can reuse and adapt, which saves much more time than starting from scratch.

Quick check

When improving a prompt, how many things should you change at a time?

Quick check

What should you do with facts in an AI answer that matter?

0 of 3 lessons done in this track