Nearby lessons
9 of 49Prompt 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 Prompt | Clear Prompt |
|---|---|
| Missing details | Full details |
| Multiple meanings | Single meaning |
| AI guesses | AI understands |
| Random output | Stable 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
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 Constraints | With Constraints |
|---|---|
| Random output | Controlled output |
| Inconsistent | Stable |
| Hard to reuse | Easy to reuse |
| Confusing | Clear |
Example02
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
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 QuestionsProgress: 0 / 4