Chapter 1: Common Prompt Patterns
π― Learning Objectivesβ
- Apply the CREATE framework
- Use RACE for structured prompts
- Implement RTF for task clarity
- Build a pattern library
The CREATE Frameworkβ
Character, Request, Examples, Adjustments, Type, Extras
C - Character: "You are a marketing expert..."
R - Request: "Write a product description..."
E - Examples: "Like this: [example]"
A - Adjustments: "Make it persuasive but not pushy"
T - Type: "Format as a 150-word paragraph"
E - Extras: "Include a call-to-action"
The RACE Frameworkβ
Role, Action, Context, Expectations
Role: "You are a financial analyst"
Action: "Analyze this quarterly report"
Context: "For a board presentation"
Expectations: "Focus on revenue trends, provide 3 recommendations"
The RTF Frameworkβ
Role, Task, Format
Role: "Senior software engineer"
Task: "Review this code for security vulnerabilities"
Format: "List issues with severity ratings and fixes"
Pattern Comparisonβ
| Pattern | Components | Best For |
|---|---|---|
| CREATE | 6 elements | Complex, detailed prompts |
| RACE | 4 elements | Business/professional tasks |
| RTF | 3 elements | Quick, straightforward tasks |
Building Your Pattern Libraryβ
Start collecting patterns that work for your use cases:
Pattern Library Entry:
- Name: "Product Description Generator"
- Pattern: RTF
- Template: [Role] + [Product details] + [Format specs]
- Success rate: High
- Notes: Works best with specific features list
Key Takeawaysβ
Summary
- CREATE for comprehensive prompts (6 components)
- RACE for professional/business prompts (4 components)
- RTF for quick tasks (3 components)
- Build a pattern library for consistent results
β Back to Module 5 | Next: Building Reusable Templates β