AI glossary · Prompts and settings

Top-p

Top-p is a setting that limits an AI’s word choices to its most likely options, such as those making up 90% of the probability. Lower values are more focused.

Also called nucleus sampling

In more detail

With top-p set to 0.1, the model only considers the few tokens that make up the top 10% of probability. At 1, it considers everything.

It is an alternative to temperature for controlling variety. Providers usually suggest adjusting one or the other, not both.

Browse related tools

AI tools listed on BroUseAI in these categories.

More in Prompts and settings · Full AI glossary