1.6.5 · Lesson 27 of 28
Iterative prompt improvement
Improve prompts based on measurable outcomes. Useful techniques include:
WHAT
Improve prompts based on measurable outcomes.
Useful techniques include:
- structured input
- explicit output schemas
- examples
- iterative refinement
- feedback loops
- reasoning-oriented instructions when appropriate
Structured input
Instead of:
> Analyze this.
Use:
Customer: Issue: Priority: Relevant policy: Required output:
Structured output
Define expected fields:
{
"category": "...",
"priority": "...",
"reason": "..."
}Feedback loop
Prompt ↓ Model ↓ Evaluate ↓ Identify failure ↓ Modify prompt ↓ Retest
EXAM TRAP
Prompt iteration should be evidence-driven.
Do not continuously change prompts without a controlled evaluation set.
---
Key points
- Improve prompts based on measurable outcomes. Useful techniques include:
Exam focus
Prompt iteration should be evidence-driven. Do not continuously change prompts without a controlled evaluation set.