How ChatGPT works · Lesson 4
Randomness and temperature
Ask the same question twice and you may get different answers. That is because the model samples from its probabilities instead of always taking the top choice.
Temperature controls how adventurous that sampling is: low means predictable and repetitive, high means varied and creative (and sometimes nonsense). Some apps let you set it; many newer models fix it internally.
Exercises
- You want the AI to extract exact figures from an invoice. Which setting fits best?
- Pressing "Regenerate" gives a different answer because…