Skip to content
Minute Campus.

How AI actually worksLesson 011 min

How does ChatGPT come up with an answer?

A chatbot builds an answer one small piece at a time. It scores every possible next word for the text so far, picks a likely one, adds it and repeats. It learned those scores by practising one task on a huge amount of text: guessing what comes next. On its own, the model predicts an answer. It does not look one up.

Remember

A chatbot predicts its answer one piece at a time; it does not look it up.

Transcript

The lesson, word for word.

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

How does ChatGPT come up with an answer? It writes one small piece at a time. Take the sentence: the sky is. The model looks at those words and gives every possible next word a score. Blue scores high. Banana scores low. It picks a likely word, adds it to the sentence, and then does the whole thing again. And again. That is all an answer is. One prediction after another, hundreds of times. It learned those scores by reading a huge amount of text and practising one task: guess what comes next. So on its own, the model is not looking your answer up anywhere. It is predicting it. Which raises a question. What happens when the likely word is the wrong one? That is episode two.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.