Challenge - 5 Problems
Few-shot Prompting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Few-shot Prompting Basics
What is the main advantage of few-shot prompting when using large language models?
Attempts:
2 left
💡 Hint
Think about how few-shot prompting helps the model understand what you want by showing examples.
✗ Incorrect
Few-shot prompting works by giving the model a few examples in the prompt so it can mimic the pattern and produce the desired output.
❓ Predict Output
intermediate2:00remaining
Predicting Output from Few-shot Prompt
Given this prompt to a language model, what is the most likely output?
Prompt:
"Translate English to French:
1. Hello -> Bonjour
2. Thank you -> Merci
3. Good night ->"
Attempts:
2 left
💡 Hint
Look at the pattern of English phrases and their French translations.
✗ Incorrect
The prompt shows English phrases with their French translations. 'Good night' translates to 'Bonne nuit' in French.
❓ Model Choice
advanced2:00remaining
Choosing the Best Model for Few-shot Prompting
Which type of model is best suited for few-shot prompting tasks?
Attempts:
2 left
💡 Hint
Few-shot prompting relies on the model's prior knowledge and ability to generalize.
✗ Incorrect
Large pretrained language models have learned broad patterns and knowledge, making them effective for few-shot prompting.
❓ Hyperparameter
advanced2:00remaining
Effect of Temperature in Few-shot Prompting
In few-shot prompting, what effect does increasing the temperature parameter have on the model's output?
Attempts:
2 left
💡 Hint
Temperature controls randomness in the model's choices.
✗ Incorrect
Higher temperature values increase randomness, making outputs more diverse and creative.
❓ Metrics
expert2:00remaining
Evaluating Few-shot Prompting Performance
Which metric is most appropriate to evaluate the quality of few-shot prompting outputs for a text classification task?
Attempts:
2 left
💡 Hint
Think about the task type and what metric measures correct predictions.
✗ Incorrect
Accuracy measures how many predictions match the true labels, suitable for classification tasks.