Improving
- Choose this pattern when your output requires multiple cycles of improvement, review, or quality assurance.
- Ideal for tasks where automated evaluation and feedback must be incorporated—until the result meets acceptance criteria.
Example
- The prompt receives a content generation request
- A Generator prompt creates a draft.
- An Evaluator prompt checks the draft for accuracy, style, and other criteria.
- If the draft is rejected, evaluator provides feedback and the generator makes improvements.
- This cycle repeats until the evaluator approves, at which point the final output is delivered.