Skip to content
AgenticAIWiki
  1. Glossary
  2. Top-k

Glossary term

Top-k

A sampling setting that limits the choice of next token to the k most likely tokens.

Open lesson 6.2

Top-p and top-k · Chapter 6

In plain words

Rarely needed; mostly useful for removing very low-probability tokens.

Taught in

  1. 6.2Top-p and top-kChapter 6, Sampling · main lesson

Also in these lessons

Temperature