Lesson 1The core idea: it predicts the next word
An AI language model doesn't “know” things the way a person does, and it doesn't look anything up in real time when you ask it a question. Instead it does one very specific job, over and over, extremely fast: it predicts the next word.
Think of it as the world's most advanced autocomplete. You type “The capital of Ghana is,” and the model predicts the most likely next word based on patterns it learned from an enormous amount of text. It says “Accra” — not because it looked it up, but because in the huge amount of text it learned from, “Accra” was overwhelmingly the word that followed that phrase. It does this one word (technically one “token” — a word or word-piece) at a time, building its whole answer prediction after prediction.
One job, repeated
Every sentence an AI writes is thousands of tiny next-word bets, made at incredible speed.