What is the most accurate mental model of what a prompt does to a language model?
- It sends a request to an assistant that consults its memory and returns the correct stored answer
- It configures a text-completion machine so that the desired output becomes the most probable continuation
- It compiles into fixed instructions that the model executes deterministically like a normal program
- It searches a database of prior conversations and returns the closest matching reply it can find there
Why
A prompt is best understood as a configuration of a probabilistic text-completion machine. The model predicts the most likely continuation given the full context. Your job is to build a context that makes the output you want the most probable continuation. The assistant-consulting-memory option is misleading because the model is not looking up a stored answer; it generates a distribution over next tokens. The compiles-to-fixed-instructions option is wrong because the mapping from prompt to output is probabilistic and sensitive to small wording changes, unlike deterministic code. The searches-a-database option is wrong because there is no retrieval over past conversations happening inside the model itself. Thinking of the prompt as a program running on a probabilistic computer explains why phrasing, ordering, and examples all shift behavior. It also reframes prompt design from writing text to engineering an input distribution.