Skip to content

Current path

Prompt Engineering
Level: Intermediate33 lessons
Progress0/33 · 0%

Evaluation and Iteration

Iterative Prompt Improvement

Change one element or a limited set per iteration and retest to understand the effect instead of rewriting randomly.

In this lesson

Why this matters

Iterative improvement changes a defined element and retests the same cases. Record version, change, reason, and result so you know what improved or degraded performance.

How to apply it

  1. Define the task and desired outcome.
  2. Add only context or rules that affect success.
  3. Specify an output form or checkable criterion when needed.
  4. Test on realistic input and revise when a failure pattern appears.

Practical example

Weak example:

text
Weak version of the same task: لم تعجبني النتيجة؛ سأعيد كتابة كل شيء.

The weak version leaves an important part of the task or its boundaries to guesswork. The improved version adds information tied directly to success without treating length or complexity as a goal.

Improved example:

text
Improved version: المشكلة: حقائق غير مدعومة. أضف فقط قاعدة نطاق المصدر، ثم أعد نفس 10 اختبارات وقارن المخالفات.

Short practice

Apply the lesson concept to this task: قارن نسختين من Prompt على 5 حالات ومعيارين.

Check your understanding

Check: لماذا نغيّر عنصرًا محددًا؟
Answer: لربط تغير الأداء بتعديل معروف.

Summary

Keep this concept as one tool rather than a magic formula. Tie it to the goal and success criteria, then build on it in the next lesson.