Challenge 02 · Few-Shot Prompting
Few-Shot Teacher 🟡
What is Few-Shot Prompting?
Few-shot prompting gives the model a small number of input→output examples directly inside the prompt. The model learns the pattern from your examples and applies it to new inputs. The key skill is writing examples that clearly demonstrate the pattern you want the model to follow — especially when the desired output has a specific style, format, or voice.
Scenario
Your Task
Build a PartyRock app called "Brand Voice Generator" that:
- Takes a food product name + 3 key features as input
- Outputs a 3-sentence product description in the brand's voice
- The voice is: playful, slightly cheeky, uses food puns, avoids corporate jargon
Rules
- Your system prompt must include at least 3 example input→output pairs that demonstrate the brand voice
- The examples must be your own — do not copy from course slides
- Output must clearly sound like the voice shown in your examples
Example to Inspire (Do Not Copy)
Write your own 3+ examples in this style, then let the model continue the pattern.
How to Build This on PartyRock — Step by Step
Scoring Breakdown (150 pts)
| Criterion | Points |
|---|---|
| Correct few-shot technique (3+ examples in prompt) | 25 |
| Example quality — do they clearly show the brand voice? | 25 |
| Output actually matches the voice from examples | 20 |
| Creative and original brand personality | 15 |
| Model choice + written justification | 25 |
| Temperature value + written justification | 20 |
| Top P value + written justification | 20 |
| Total | 150 |
Submit Your Entry