Topic
Temperature (LLM Sampling Parameter)
6 posts on temperature (llm sampling parameter) — part of glossary on the n4n AI blog.
What is temperature in AI language models?
A precise technical explanation of the temperature sampling parameter in LLMs, covering the math, practical effects, and common misconceptions engineers encounter.
How temperature interacts with top-p sampling
Understand how temperature and top-p sampling interact, when to tune each, and practical parameter combinations for production LLM applications.
How temperature controls randomness in LLM output
A practical guide to how temperature controls randomness in LLM sampling, with code examples, common pitfalls, and tradeoffs for production systems.
How Claude and GPT-4o implement temperature differently
Engineers compare how Claude and GPT-4o implement temperature sampling, covering ranges, defaults, determinism, and when to use each model's approach.
Choosing a temperature for chatbots vs summarization
A step-by-step guide to selecting temperature settings for chatbots versus summarization tasks, with runnable code and verification methods.
Best temperature settings for coding with GPT-4o
Practical guide to finding the best temperature for coding with GPT-4o, with runnable experiments and verification steps.
More topics in glossary
- Structured Outputs & JSON Mode19
- AI Agents Fundamentals12
- Hallucination in LLMs11
- Sampling Parameters: Top-p, Top-k & Penalties11
- Context Window & Context Length10
- Fine-Tuning Fundamentals9
- Foundation Models: Base vs Instruct vs Chat9
- Model Families & Naming Conventions: GPT-5, Claude, Gemini 3, Llama 4, Mistral, DeepSeek, Qwen, Grok9
- Grounding & Fact-Checking in AI8
- LLM Benchmarks: MMLU, HumanEval, SWE-bench & GPQA8
- Max Tokens, Stop Sequences & Output Truncation8
- Quantization Formats: GGUF, GPTQ, AWQ & INT4/INT88