Nearby lessons

9 of 49

Prompt Engineering - Constraints and Ambiguity

Ambiguity — Why AI Guesses

Ambiguity means an unclear or incomplete instruction. When the prompt is not clear, AI fills the missing gaps by guessing based on probability — and the output becomes random. The problem is not the AI; the problem is the unclear instruction.

In simple words: Ambiguity makes AI guess, clarity makes AI accurate. A prompt should be like a requirement document, not a casual chat message.
Ambiguous PromptClear Prompt
Missing detailsFull details
Multiple meaningsSingle meaning
AI guessesAI understands
Random outputStable output

The friend example explains it:

  • Say "Bring it" to a friend → they guess — wrong item, wrong place.
  • The problem is not the friend, it is the unclear instruction.

AI behaves exactly the same way.

Example01
Loading editor…

Constraints — Rules That Control AI

Constraints are rules that limit AI behavior. Each type controls one thing:

  • Length constraint — controls size.
  • Tone constraint — controls style.
  • Format constraint — controls structure.
  • Plain rules — control what AI may or may not do.

Without constraints, AI has too much freedom and the output becomes inconsistent.

In simple words: Constraints control AI, examples stabilize AI. Together they give you full control over the response.
Without ConstraintsWith Constraints
Random outputControlled output
InconsistentStable
Hard to reuseEasy to reuse
ConfusingClear
Example02
Loading editor…

Examples — A Reference That Stabilizes Output

An example is a sample output that guides AI's style. When you show AI one good example, it follows the same pattern — this is called giving a reference.

The carpenter story shows it:

  • "Make table" → confusion.
  • "Make a study table, 4 feet, brown colour" → correct.
  • Showing a sample image → perfect.
In simple words: Constraints give rules; examples give a visible reference — use both for maximum control. AI mirrors the pattern you show it.
Example03
Loading editor…

Real-World Use Cases

  • Student — exact notes, quick revision, structured study material.
  • Employee — precise reports and clear task instructions.
  • Developer — controlled, predictable outputs for tools.
  • Business — consistent content and clear requirement communication.
📝 Key Takeaways
  • Ambiguity makes AI guess; clarity makes AI accurate.
  • A prompt should read like a requirement document, not a casual chat message.
  • Constraints are rules that limit AI behavior — length, tone, format, and plain rules.
  • Without constraints, AI has too much freedom and the output becomes inconsistent.
  • An example is a sample output that guides AI's style — a visible reference.
  • Constraints + examples = control + stability.

🧠 Test Your Knowledge

4 Questions
Progress: 0 / 4

Finished this lesson?

Mark it as complete to track your progress and see technology completion stats.