Skip to content
Minute Campus.

How AI actually worksLesson 051 min

Why does the same prompt give a different answer each time?

A model scores every possible next word, then picks one by a weighted spin rather than always taking the top. A word with a large share wins most spins, not all. A setting called temperature controls how wild the spin is: low is steady and repeatable but flat, high brings variety and more mistakes.

Remember

A different answer from the same prompt is a design choice, not a bug.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

Why does the same prompt give a different answer each time? You already know the model scores every possible next word. But it does not always take the top one. It spins a weighted wheel. A word with a seventy percent share wins most spins, but not all of them. And one different word early on sends the rest of the sentence a different way. How wild the spin is depends on a setting called temperature. Turn it down, and the model almost always takes the top word. Steady, repeatable, a little flat. Turn it up, and unlikely words get a real chance. More variety, more surprises, more mistakes. Chat apps set it somewhere in between, on purpose. So a different answer is not a bug. It is a choice the makers made. Next: how a model knows what words mean.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.