What it does

GPT writes text by guessing the next word again and again.

Generative: AI that creates content • Prompt: Instructions given to AI

How it works

  • Read the prompt.
  • Guess a good next word.
  • Add that word, then guess the next one.

Uses & Applications

  • A writing helper can draft an email.
  • A coding helper can suggest code.
  • A tutor chatbot can answer a question in simple words.
In short

GPT generates text one next piece at a time.

Try it yourself

Build a sentence one word at a time

The computer looks at the words it has so far and scores possible next words.

Your turn

Change one setting at a time. Reset example puts everything back.

Append the next token

Step 1
Why this happens

Look closer at the numbers
Numbers used in this example