Language models
Machine-learning systems that generate or classify text, often used as the core of an agent.
A language model is a machine-learning system that generates or classifies text, and often other tokens such as code or tool calls. It is the core of most agents and of many product features: search answers, summaries, drafts, and decisions. Models differ in quality, speed, context window, cost, and what they are allowed to be used for.
Choose a model from the job, not from the leaderboard alone. A small, cheap model with a tight prompt can beat a large model with a vague one, especially for classification or extraction. Reserve the larger models for hard reasoning, long context, or messy tool use. Keep the name of the model in config so you can swap it later.
Measure the things that matter for your product: accuracy on a fixed set, latency at the tail, and cost per successful task. A demo that looks clever once is not a measurement. When you add tools, measure the whole loop, not just the first token.
Do not put secrets in prompts if you can avoid it, and do not assume the model will follow a policy you only wrote in English. Enforce the policy in code around the model as well.
Context window
The maximum number of tokens a model can handle in one request, counting both input and output.
The context window is the maximum number of tokens a model can process in one request, counting the system prompt, conversation history, retrieved documents, tool results, and the reply it generates. Anything beyond the limit must be cut, summarized, or left out. Windows have grown from a few thousand tokens to hundreds of thousands or more.
A bigger window is not free attention. Longer prompts cost more, take longer before the first token appears, and models do not use every position equally well; information buried in the middle of a long prompt is often used less reliably than information at the start or end. That is why targeted retrieval, compaction, and putting the most important instructions in prominent positions still matter even with very large windows.