How ChatGPT works · Lesson 1
One word at a time
ChatGPT, Claude and Gemini are large language models (LLMs). Under the hood they do one thing, over and over: predict the next piece of text.
Given "The cat sat on the", the model scores every possible next piece, picks one, adds it, and repeats until the answer is complete. Long, fluent answers emerge from millions of these tiny steps.
Tip: Because it predicts likely text, an LLM is brilliant at fluent writing, and it can produce likely-sounding text that is false.
Exercises
- At its core, an LLM produces text by…