Skip to content

Current path

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

Foundations

How Models Handle Instructions

Learn how clarity, context, and information placement affect responses without assuming human-like understanding.

In this lesson

Why this matters

A model responds to its input, context, and available instructions; it cannot know an unstated intention. Ambiguity permits multiple interpretations, and behavior can vary across models and versions.

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: رتّب المهام إلى عاجل ومهم، مهم غير عاجل، ثم البقية. أعد جدولًا: المهمة، الفئة، السبب.

Short practice

Apply the lesson concept to this task: اكتب طلبًا غامضًا وحدد نقطتين يمكن تفسيرهما بأكثر من طريقة ثم حسّنه.

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.