A support bot gives different wording each time for the same question, and the team wants answers that are as repeatable as possible. Which setting change helps most?
- Exam domain
- LLM fundamentals
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why A is the answer
Lower the temperature
Temperature scales how random token sampling is. A lower temperature makes the most likely tokens even more likely, so outputs vary less between runs.
Remember: Lower temperature, less variation.
In detail
- Low temperature: more deterministic.
- High temperature: more varied.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Lower the temperatureRight
Lower temperature, less variation.
B. Increase the maximum output tokensWrong
Output length does not control randomness.
C. Add more examples of creative writing to the promptWrong
Creative examples push the model toward variety.
D. Raise the temperature so the model explores more options before it settles on an answerWrong
Higher temperature makes the wording vary more, not less.
Use case
An illustrative scenario, not a real incident.
Illustrative: an HR bot answers policy questions with temperature near zero so audits see the same text.
See it in different ways
flowchart TD
Q{"What do you need?"}
Q -->|"Repeatable answers"| A0["Lower temperature"]
Q -->|"Varied ideas"| A1["Higher temperature"]How to read this chart
- At "What do you need?": if "Repeatable answers", go to "Lower temperature"; if "Varied ideas", go to "Higher temperature".
stateDiagram-v2 state "Many likely tokens" as s0 state "Few likely tokens" as s1 state "Near greedy choice" as s2 [*] --> s0 s0 --> s1: lower temperature s1 --> s2: temperature near 0 s2 --> [*]
How to read this chart
- It starts at "Many likely tokens".
- From "Many likely tokens", "lower temperature" moves it to "Few likely tokens".
- From "Few likely tokens", "temperature near 0" moves it to "Near greedy choice".
- It ends at "Near greedy choice".