Everyday Learning العربية
Computer scienceBuild your own ChatGPT · Lesson 5 of 8 · 6 min

How does AI know what “it” means?

In “The trophy didn't fit in the suitcase because it was too big”, you know “it” is the trophy. The AI scores every earlier word and leans on the best match.

In this lesson

Lines show how much “it” looks at each word.

Your notebook page

  • Score every earlier word.
  • Weights share out 100%.
  • Biggest weight, not nearest word.
  • Every word does this, many times.

Where you'll see it today

A chat app answering “what about it?”, a translation app picking “he” or “she”, a voice assistant following up on your last question.

The course

Build your own ChatGPT

Every lesson adds a part. Finish them all to build the Pocket chatbot.

  1. 1Next wordsHow does ChatGPT pick the next word?
  2. 2Keyboard guessesHow does your keyboard guess your next word?
  3. 3TokensWhy does ChatGPT chop words into pieces?
  4. 4Meaning mapsHow does AI know “king” is close to “queen”?
  5. 5AttentionHow does AI know what “it” means?
  6. 6Learning from mistakesHow does a neural network learn from mistakes?
  7. 7TemperatureWhy does ChatGPT sometimes make things up?
  8. 8Build the chatbotCan you train a mini chatbot?
Open in the app Download on the App Store