Skip to content

Current path

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

Capstone Project

Test and Improve the Project

Create test cases, compare outputs against criteria, document failures, then refine the prompt into a justified final version.

In this lesson

Why this matters

Project testing combines representative cases, criteria, recorded results, failure analysis, and controlled revision. Retest when changing models or versions because behavior may change.

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: شغّل v1 على 15 حالة، سجل كل معيار، اجمع الأخطاء حسب النمط، عدّل قاعدة واحدة في v2 ثم أعد الاختبارات وقارن.

Short practice

Apply the lesson concept to this task: أنشئ خطة: 10 حالات، 3 معايير، وحالتان حدّيتان ثم دورة تحسين.

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.