Skip to content

Current path

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

Building Effective Prompts

Constraints, Audience, and Tone

Specify boundaries, audience, and communication style when they materially affect output quality.

In this lesson

Why this matters

Constraints set boundaries such as length and scope, audience calibrates explanation level, and tone shapes communication. Conflicting constraints can reduce consistency.

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: اشرح التصيد لموظف غير تقني في 120 كلمة، بلغة بسيطة ونبرة توعوية، واختم بثلاث علامات تحذير.

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.