🎯 Learning Objectives
- Identify the 5 core components of any high-performance prompt
- Write explicit instructions instead of relying on assumptions
- Understand instruction hierarchy and what the model obeys first
- Know when to use minimal vs rich prompts
- Recognise and fix the most common failure patterns
1. The 5 Core Components
Every high-performance prompt contains some combination of five elements. Missing even one degrades the output.
| Component | Answers | Example |
|---|---|---|
| Role | Who is responding? | "You are a regulatory auditor..." |
| Task | What needs to be done? | "Identify compliance gaps in this SOP" |
| Context | What background matters? | "The audience is fresh pharmacy graduates..." |
| Constraints | What are the limits? | "Max 150 words. No regulatory jargon." |
| Output Format | How should it look? | "Short intro + 5 bullet points" |
2. Role — Who Is Responding
Generic output by necessity — no perspective assigned.
Useful Role Archetypes
- Domain expert — "You are a senior regulatory affairs specialist..."
- Adversarial — "You are an FDA inspector looking for compliance gaps..."
- CXO advisor — "You communicate in plain executive language..."
- Editorial — "You are a senior editor who prioritises clarity and precision..."
3. Task — What Exactly Needs to Be Done
Overview? Technical? Regulatory? Training material? The model picks one at random.
4. Context — Background & Audience
For whom? A PhD scientist? A first-day operator? Each needs a completely different explanation.
5. Constraints — Boundaries That Improve Quality
You may get 800 words, regulatory citations, and tangential topics.
6. Output Format — How the Answer Should Look
Wall of text — hard to scan, adapt, or share.
7. Weak vs High-Performance: Full Comparison
Higher stakes = richer prompt. A quick internal note can use a minimal prompt. A client deliverable or regulatory document deserves a fully structured prompt.
✏️ Module 02 Exercise
Take the weakest prompt you've used this week. Rebuild it using all five components: Role, Task, Context, Constraints, Output Format. Run both versions and compare the outputs.
🔑 Key Takeaways
- Every prompt has 5 components — missing any one degrades output
- Role primes perspective; Task drives direction; Context calibrates depth
- Constraints reduce noise and improve usefulness
- Format turns output into something immediately usable
- Higher stakes demand richer, more structured prompts
- Instruction conflicts produce diluted, generic outputs