Beginner-Friendly Topic
Take your time - it's perfectly normal to re-read this topic 2-3 times. Try the interactive code editor below to run code yourself. Use the Q&A section to check your understanding before moving on. You've got this! 🚀
Ambiguous Instructions
Ambiguous instructions are unclear instructions that AI can interpret in multiple ways. Understanding how ambiguity causes problems helps you write more precise prompts.
What Ambiguity Means
Ambiguity means your prompt can be interpreted in more than one way.
When AI faces an ambiguous prompt, it picks one interpretation, often not the one you intended.
Examples of ambiguous instructions:
- 'Make it shorter': shorter than what? How much shorter?
- 'Write a good email': good in what way? Professional? Friendly? Brief?
- 'Explain better': better than what? What was wrong with the previous explanation?
- 'Add more detail': to which part? How much detail?
- 'Fix the problem': what problem? The logic? The formatting? The performance?
Deep Learning ⊂ Machine Learning ⊂ Artificial Intelligence
Fixing Ambiguous Instructions
- Ambiguous: 'Make it shorter.' Clear: 'Reduce this text to 50 words while keeping the main idea.'
- Ambiguous: 'Write a good email.' Clear: 'Write a professional email to a client declining a project proposal. Keep it under 80 words and maintain a friendly, respectful tone.'
- Ambiguous: 'Add more detail.' Clear: 'Expand the section on authentication to include a step-by-step explanation and one code example.'
- Ambiguous: 'Improve this.' Clear: 'Improve the clarity of this paragraph. Use shorter sentences and simpler vocabulary.'
- Ambiguous: 'Tell me about databases.' Clear: 'Explain the difference between SQL and NoSQL databases to a developer who has only used SQL before.'
Key Takeaways
- Ambiguity in a prompt leads to AI picking an interpretation that may not match your intent
- Check your prompts for words that can mean multiple things
- Be specific about what, how much, in what style, and for whom
- If the first AI response misses the point, the prompt was likely ambiguous
- Reading your prompt out loud can help you spot ambiguity before sending it
Key Takeaways
- Ambiguous instructions are unclear instructions that AI can interpret in multiple ways.
- Ambiguous: 'Make it shorter.' Clear: 'Reduce this text to 50 words while keeping the main idea.'
- Ambiguous: 'Write a good email.' Clear: 'Write a professional email to a client declining a project proposal. Keep it under 80 words and maintain a friendly, respectful tone.'
- Ambiguous: 'Add more detail.' Clear: 'Expand the section on authentication to include a step-by-step explanation and one code example.'