PromptForge
AI Glossary

Core concepts

Top-p (nucleus sampling)

Also known as: nucleus sampling, topp

Definition

Top-p limits the model to choosing from the smallest set of tokens whose combined probability exceeds p. At top-p 0.9, the model samples only from options making up the top 90% of probability mass, ignoring the unlikely tail.

Top-p is an alternative to temperature for controlling randomness, and the two are often available together. Where temperature rescales the whole probability distribution, top-p truncates it — cutting off the long tail of implausible tokens entirely.

The advantage is adaptivity. When the model is confident, the nucleus is small and output stays focused. When many options are genuinely plausible, the nucleus widens and output varies. Temperature applies the same scaling regardless of confidence.

Standard advice is to tune one or the other, not both. Most practitioners adjust temperature and leave top-p near its default of 0.9-1.0.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.

Course

AI Marketing

Use AI for market research, copywriting frameworks, and audience segmentation — with prompts that produce genuinely usable marketing assets, not generic filler.

Course

AI SEO & Search Visibility

Use AI to do keyword research, optimize content for search, and get your brand cited by AI answer engines like ChatGPT, Perplexity, and Google AI Overviews.

Project

Build a Personal Study Assistant

Turn a stack of lecture notes into a study partner that quizzes you, explains what you got wrong, and tracks which topics you keep failing. You will finish with a reusable system prompt you can point at any subject.

Project

Build a Research Brief Generator

Create a repeatable workflow that turns a vague question into a structured research brief with sources, open questions and a confidence rating. The output is something you can hand to a colleague, not a wall of text.

Prompt

Competitor Content Gap Analysis

Paste a competitor's page structure (headings, topics covered) alongside yours and ask AI to find gaps — subtopics they cover that you don't, questions they answer, and angles they missed that you can own..

Prompt

Competitor Positioning Snapshot

Competitive research with citations. Use this before a positioning workshop, a pricing review, or writing comparison copy — the table format makes it easy to spot where a rival is genuinely stronger versus where they are just louder. Always run it on a search-grounded model like Perplexity so every claim carries a source and a date you can verify.