CatalogPrompts

Prompt · AI Programming

The Few-Shot Example Builder

Create perfect training examples that teach AI exactly what you want

Download

Swap anything in [brackets] for your own details.

Few-shot prompting is the most underused power technique in AI. By showing the model examples of what you want, you can get dramatically better results than just describing it. Teach me to build perfect few-shot examples.

My task: [DESCRIBE WHAT YOU WANT THE AI TO DO]
What good output looks like: [DESCRIBE YOUR IDEAL RESULT]
What bad output looks like: [WHAT YOU DON'T WANT]

Build my few-shot system:
1. THE GOLDEN EXAMPLE: Create 1 perfect input-output pair that captures exactly what I want
2. THE EDGE CASE EXAMPLE: Create 1 example that shows how to handle a tricky variation
3. THE NEGATIVE EXAMPLE: Create 1 example labeled "DON'T do this" showing common mistakes
4. THE TEMPLATE: Combine these into a reusable prompt template with a [NEW INPUT] slot
5. THE SCALING GUIDE: When do I need 2 examples vs. 5? How to decide?
6. THE QUALITY TEST: How to verify my examples are actually improving output (A/B methodology)

Give me the completed prompt template ready to use, then explain the principles behind why each example was chosen.