Prompt Engineering · Essentials
Temperature and Top-p Sampling
The dials that control creativity vs. consistency — understand how LLMs pick each word and how to tune randomness for your task.
- 25 min lesson
- beginner level
- Narrated presentation
What you’ll learn
- Probability distribution over tokens
- Temperature scaling
- Top-p (nucleus) sampling
- Top-k sampling
- Determinism vs. creativity
- Task-appropriate settings
Inside this lesson
A narrated, slide-by-slide presentation with 1 prediction exercise, 1 knowledge check, 2 videos. You answer as you go, and the platform checks your work.