LOW RANDOMNESS
Top word selected (simulated)
Provider: OpenAI API • Temperature: 0.15 • Top-P: 0.90 • Format Lock: STRICT
{ "provider": "openai", "temperature": 0.15, "top_p": 0.9, "response_format": { "type": "json_schema", "json_schema": { "name": "operator_response", "strict": true, "schema": { "type": "object", "additionalProperties": false, "required": [ "result", "verified" ], "properties": { "result": { "type": "string", "description": "Primary task output" }, "verified": { "type": "boolean", "description": "Whether all constraints were verified" } } } } } }
These numbers come from a small simulated example with four candidate words, not from testing a real model. A lower temperature makes answers more repeatable. It does not make them more factual.
Running data extraction or JSON tool calls at default high temperature (0.80 to 1.00) without a schema lock, or passing out-of-range temperatures that fail provider API validation.
Setting temperature between 0.00 and 0.20 for repeatable analytical tasks, clamping automatically to each provider's valid range (Anthropic 0..1, OpenAI/Ollama 0..2), and enforcing a JSON Schema contract.
| Provider / Parameter | Accepted Range | Strict Schema Format | Recommended Task Profile |
|---|---|---|---|
| OpenAI API | Temperature 0.00 to 2.00 | response_format: { type: 'json_schema', json_schema: {...} } | T = 0.00..0.15 for extraction; T = 0.70..0.85 for creative copy |
| Anthropic Claude API | Temperature 0.00 to 1.00 (auto-clamped) | tools: [{ name, input_schema }] + tool_choice | T = 0.00..0.20 for contract redlines & structured tool calls |
| Ollama / Local GGUF | Temperature 0.00 to 2.00 | options: { temperature, top_p }, format: schema | T = 0.05..0.15 for local air-gapped JSON pipelines |
| Softmax Scaling Formula | P(i) = exp(logit_i / max(0.0001, T)) / Z | T = 0.00 yields greedy top-token selection | Controls repeatability (lower T = more consistent choices) |
0 to 0.3 for extraction, classification and code. About 0.5 to 0.8 for general writing. Higher for brainstorming. Start low and raise it only if answers feel repetitive.
Usually change one. Most providers suggest adjusting temperature or top-p, not both.
It gets close, but small differences can still appear between runs and model versions.
No. It reduces randomness, not factual errors. Give the model sources and ask it to cite them.