Text prediction generates language by estimating the most probable next word or character from preceding context. It matches patterns rather than retrieving verified answers, so it can produce useful text, code, or confident nonsense. section 1.5 section 1.5.1
An LLM produces a response through a repeating prediction process:
- Processes the input through a mathematical model. section 1.5.1
- Calculates relationships among different parts of the input. section 1.5.1
- Predicts the most probable next word or character. section 1.5.1
- Repeats prediction using both the original input and the text already generated. section 1.5.1
Because the process is probabilistic, the same question can receive different answers, and a response can sound certain while being wrong. Treat generated code and factual claims as suggestions that require verification. section 1.5 section 1.5.1
