Skip to main content
Decoding controls how the next token is chosen from model probabilities.

Common controls

Typical presets

Failure patterns

  • Too random: inconsistent facts, unstable structured output.
  • Too deterministic: repetitive or bland completions.
  • Over-penalized: awkward wording and topic drift.

Practical advice

  1. Tune decoding per task, not globally.
  2. Keep extraction/JSON tasks conservative.
  3. For creative tasks, increase randomness gradually and evaluate with human review.
Last modified on July 26, 2026