Top-p
A setting that limits the model to the smallest set of likely next tokens whose chances add up to p.

Also called: Nucleus sampling.
For: Builders
Why it matters
Like temperature, it trades variety for predictability.
In practice
At top-p 0.9 the model ignores the long tail of unlikely words.
Watch for
Change temperature or top-p, not both, so you know what helped.
Related terms
Sources
Definition updated 2026-10-29.