How a ChatGPT works · demonstration

Next Word

This machine read a text and counted which word usually comes after each word. That is all. Write a beginning and watch it "write," choosing one of the most probable words at each step.

The text the machine writes

Possible next words

Click a word to choose it yourself, or let the machine draw one. Words with a longer bar are more likely to come out.

What does this have to do with ChatGPT?

It is the same idea: predicting the next word. The difference is scale. This machine looks 1 to 3 words back and has read — words. A large language model looks hundreds of thousands of words back and has read trillions. That is why it writes so well, and that is also why it makes things up with the same confidence: it does not look up facts, it chooses the most probable continuation.

Use your own text (paste a poem, a chapter, your course syllabus…)
—words read
—different words
—sequences counted