Large language models don’t just predict the “right” next word—they sample from a probability distribution shaped by a parameter called temperature.
A low temperature makes responses focused and deterministic; a high temperature adds creativity (and chaos).
This article breaks down what temperature really does—mathematically and intuitively—so you can tune it with confidence instead of guesswork.