Glossary
LLM Temperature
The dial between predictable and surprising. Temperature rescales the model’s probabilities before each token is picked, so a low setting gives the same careful answer every time and a high one lets the model wander.
General definition
LLM Temperature is applied at the last step of inference. For each new token the model produces a score for every entry in its vocabulary; those scores are divided by the temperature and then turned into probabilities with a softmax. At a temperature near zero the highest-scoring token wins almost always, so output is close to greedy decoding. At 1.0 the model samples from its probabilities as trained. Above 1.0 the distribution flattens, low-probability tokens appear more often, and text becomes more varied and eventually incoherent.
Temperature is usually combined with other sampling controls. Top-p, or nucleus sampling, introduced by Holtzman and colleagues in 2019, keeps only the smallest set of tokens whose probabilities add up to p (for example 0.9) and samples from those. Top-k keeps only the k most likely tokens. Both cut off the long tail of unlikely tokens that a higher temperature would otherwise let through. Repetition and frequency penalties are separate knobs that discourage the model from looping.
- Support, intake and compliance agents: low temperature (0 to about 0.3) for consistent, repeatable answers that stay close to the source material
- Extraction, classification and tool calls: temperature 0 or the lowest the endpoint allows, so structured output is stable
- Drafting and brainstorming: around 0.7 to 1.0 for variety, with top-p to trim nonsense
- Multi-agent conversation or character play: moderate values so agents do not all say the same thing, bounded by a firm system prompt
Two common misunderstandings are worth stating. Temperature 0 does not guarantee identical output, because batching and floating-point arithmetic on GPUs introduce small differences between runs. And low temperature does not prevent hallucination; it makes the model consistently pick its most probable continuation, which can be consistently wrong. Factual reliability comes from grounding and from the system prompt, not from the sampling setting.
Want to try it yourself? Build an AI agent that answers from your own pages and documents with the Ethora no-code AI agent builder. No coding is needed and it is free to start.
In the Ethora ecosystem
Ethora agents call models through configurable endpoints, from hosted model APIs to self-hosted models served by Ollama or vLLM, and sampling behaviour is a property of that model and endpoint configuration. For the agents most Ethora customers deploy, a support assistant in a group room, a patient-facing intake bot, an internal drafting agent reading from a knowledge base, the sensible default is a low temperature so the same question in two rooms gets the same grounded answer.
The AI SDK is built around the things that matter more than temperature for accuracy. Each agent answers from its own knowledge base, which supplies the facts, and its system prompt sets the boundaries, so even a model sampled with some variety stays inside the material it was given. Where variety is a feature, such as several agents with different personas sharing one room under the multi-agent response gate, a moderate temperature per model keeps the conversation from collapsing into identical replies.