Challenge - 5 Problems
Prompt Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Prompt Variables
In prompt templates, variables are placeholders replaced by actual values during generation. Which statement best describes the role of variables in prompt templates?
Attempts:
2 left
💡 Hint
Think about how you can customize a prompt for different inputs.
✗ Incorrect
Variables in prompt templates act as placeholders that get replaced by actual values to customize the prompt dynamically.
❓ Predict Output
intermediate1:30remaining
Output of a Prompt Template with Variables
Given the prompt template: "Write a story about a {animal} who loves {activity}." and the variables animal='cat' and activity='painting', what is the final prompt after variable substitution?
Attempts:
2 left
💡 Hint
Replace all variables with their given values.
✗ Incorrect
The variables {animal} and {activity} are replaced by 'cat' and 'painting' respectively, producing the full prompt.
❓ Model Choice
advanced2:00remaining
Choosing a Model for Prompt Templates with Variables
You want to generate creative stories using prompt templates with variables. Which type of AI model is best suited for this task?
Attempts:
2 left
💡 Hint
Think about which model creates new text from prompts.
✗ Incorrect
Generative language models create new text based on input prompts, making them ideal for prompt templates with variables.
❓ Hyperparameter
advanced2:00remaining
Effect of Temperature in Prompt-Based Generation
When using prompt templates with variables in a generative AI model, adjusting the 'temperature' hyperparameter affects the output. What happens when you increase the temperature value?
Attempts:
2 left
💡 Hint
Higher temperature means more randomness.
✗ Incorrect
Increasing temperature makes the model sample from a wider range of possible next words, increasing creativity and randomness.
❓ Metrics
expert2:30remaining
Evaluating Prompt Template Effectiveness
You have multiple prompt templates with variables generating text outputs. Which metric best helps you measure how well the generated text matches the intended meaning or context?
Attempts:
2 left
💡 Hint
Look for a metric that compares generated text to reference text.
✗ Incorrect
BLEU score measures how closely generated text matches reference text, useful for evaluating prompt template outputs.