Bird
Raised Fist0
AI for Everyoneknowledge~10 mins

Iterating and refining prompts in AI for Everyone - Step-by-Step Execution

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Concept Flow - Iterating and refining prompts
Start with initial prompt
Submit prompt to AI
Receive AI response
Evaluate response quality
Use output
Submit refined prompt
Receive AI response
This flow shows how you start with a prompt, get a response, check if it's good, and if not, improve the prompt and try again.
Execution Sample
AI for Everyone
Prompt 1: "Tell me about cats."
AI: "Cats are small animals..."
Evaluate: Too vague
Prompt 2: "Tell me about the behavior of domestic cats."
AI: "Domestic cats often..."
This example shows starting with a simple prompt, then refining it to get a better, more specific answer.
Analysis Table
StepActionInput PromptAI Response SummaryEvaluationNext Action
1Submit promptTell me about cats.General info about catsToo vagueRefine prompt
2Submit refined promptTell me about the behavior of domestic cats.Detailed behavior infoGood enoughUse output
3End---Stop iteration
💡 Iteration stops when the AI response is good enough for the user's needs.
State Tracker
VariableStartAfter 1After 2Final
Prompt"Tell me about cats.""Tell me about the behavior of domestic cats."-"Tell me about the behavior of domestic cats."
AI Response QualityUnknownToo vagueGood enoughGood enough
Key Insights - 2 Insights
Why do we need to refine the prompt after the first AI response?
Because the first response might be too general or not focused enough, as shown in step 1 of the execution_table where the evaluation is 'Too vague'. Refining helps get clearer answers.
How do we know when to stop refining prompts?
When the AI response is 'Good enough' for your purpose, as in step 2 of the execution_table, you can stop iterating and use the output.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 1. What was the evaluation of the AI response?
AIncorrect
BToo vague
CGood enough
DNo response
💡 Hint
Check the 'Evaluation' column in row for step 1 in execution_table.
At which step does the iteration stop according to the execution_table?
AStep 3
BStep 1
CStep 2
DNever stops
💡 Hint
Look at the 'Next Action' column and the exit_note in execution_table.
If the AI response at step 2 was still too vague, what would happen next?
AStop without output
BUse output anyway
CRefine prompt again and resubmit
DChange AI model
💡 Hint
Refer to the flow in concept_flow where 'Needs improvement?' leads to 'Refine prompt' and resubmission.
Concept Snapshot
Iterating and refining prompts:
1. Start with an initial prompt.
2. Submit to AI and get a response.
3. Evaluate if response is good enough.
4. If not, refine prompt and try again.
5. Repeat until satisfied.
This helps get clearer, more useful AI answers.
Full Transcript
This visual execution shows how to improve AI prompts step-by-step. You start by sending a prompt to the AI. The AI gives a response. You check if the response is good enough. If it is, you use it. If not, you change your prompt to be clearer or more specific and try again. This loop continues until you get a helpful answer. The execution table tracks each step, showing the prompt, AI response summary, evaluation, and next action. Variables like the prompt text and response quality change as you refine. Key moments include understanding why refinement is needed and when to stop. The quiz tests your understanding of these steps. This method helps you get better results from AI by learning to ask better questions.

Practice

(1/5)
1. What does iterating prompts mean when talking to an AI?
easy
A. Asking questions step-by-step to get better answers
B. Typing the same question many times without changes
C. Using very long sentences to confuse the AI
D. Ignoring the AI's answers and asking unrelated questions

Solution

  1. Step 1: Understand the meaning of iterating prompts

    Iterating prompts means asking questions in steps to improve the AI's response.
  2. Step 2: Compare options with this meaning

    Only asking questions step-by-step to get better answers matches this idea clearly; others describe ineffective or unrelated actions.
  3. Final Answer:

    Asking questions step-by-step to get better answers -> Option A
  4. Quick Check:

    Iterating prompts = step-by-step questions [OK]
Hint: Think of asking questions one after another to improve answers [OK]
Common Mistakes:
  • Thinking iterating means repeating the same question
  • Believing longer questions always improve answers
  • Ignoring the step-by-step process
2. Which of these is the correct way to refine a prompt for an AI?
easy
A. Make the question more general and vague
B. Use slang and abbreviations to shorten it
C. Add clear details and focus the question
D. Ask multiple unrelated questions at once

Solution

  1. Step 1: Understand refining prompts

    Refining means making the question clearer and more focused for better AI understanding.
  2. Step 2: Evaluate each option

    Add clear details and focus the question fits because adding details and focus helps AI respond well; others reduce clarity.
  3. Final Answer:

    Add clear details and focus the question -> Option C
  4. Quick Check:

    Refining = clearer, focused question [OK]
Hint: Clear and focused questions get better AI answers [OK]
Common Mistakes:
  • Making questions vague thinking AI will guess
  • Using slang that AI might not understand
  • Combining many questions confusing the AI
3. Consider this prompt sequence to an AI:
1. What is climate change?
2. How does climate change affect oceans?
3. What are the main causes of ocean warming?

What is the main benefit of this approach?
medium
A. It confuses the AI by changing topics quickly
B. It wastes time by asking too many questions
C. It makes the AI ignore earlier questions
D. It helps the AI give detailed and focused answers step-by-step

Solution

  1. Step 1: Analyze the prompt sequence

    The questions go from general to specific, building understanding step-by-step.
  2. Step 2: Identify the benefit

    This stepwise approach helps AI focus and give detailed answers for each part.
  3. Final Answer:

    It helps the AI give detailed and focused answers step-by-step -> Option D
  4. Quick Check:

    Stepwise prompts = better focused answers [OK]
Hint: Stepwise questions improve AI detail and focus [OK]
Common Mistakes:
  • Thinking changing topics quickly confuses AI
  • Believing many questions waste time without benefit
  • Assuming AI ignores earlier questions automatically
4. You asked an AI: Tell me about dogs and cats and birds. The answer was unclear. What is the best way to fix this?
medium
A. Refine the prompt by asking about one animal at a time
B. Make the prompt longer by adding unrelated animals
C. Repeat the same prompt multiple times
D. Use only one word like 'animals' to simplify

Solution

  1. Step 1: Identify the problem with the original prompt

    Asking about many animals at once can confuse the AI and cause unclear answers.
  2. Step 2: Choose the best fix

    Asking about one animal at a time makes the question clearer and easier for AI to answer well.
  3. Final Answer:

    Refine the prompt by asking about one animal at a time -> Option A
  4. Quick Check:

    Clear, focused prompts = better AI answers [OK]
Hint: Ask about one topic at a time for clarity [OK]
Common Mistakes:
  • Adding unrelated details thinking it helps
  • Repeating unclear prompts expecting better answers
  • Using vague single words losing focus
5. You want to get a detailed recipe from an AI. Which prompt sequence best uses iterating and refining prompts?
hard
A. Give me a recipe for cake and cookies and bread all at once.
B. What is a recipe? Then, give me a cake recipe. Next, list ingredients for chocolate cake.
C. Tell me about cooking.
D. Recipe?

Solution

  1. Step 1: Examine each prompt sequence

    What is a recipe? Then, give me a cake recipe. Next, list ingredients for chocolate cake. breaks down the request step-by-step, refining focus from general to specific.
  2. Step 2: Identify why this helps

    This approach guides the AI clearly, improving the quality and detail of the recipe answers.
  3. Final Answer:

    What is a recipe? Then, give me a cake recipe. Next, list ingredients for chocolate cake. -> Option B
  4. Quick Check:

    Stepwise refining prompts = detailed, clear AI answers [OK]
Hint: Start general, then narrow down step-by-step [OK]
Common Mistakes:
  • Asking many things at once causing confusion
  • Using vague or one-word prompts
  • Skipping steps that build understanding