{"version":"1.0","type":"rich","provider_name":"gaks.ai AI Glossary","provider_url":"https://gaks.ai/glossary","title":"Top-K Sampling — AI Glossary","author_name":"Glenn Katrud Solheim","author_url":"https://gaks.ai","width":600,"height":200,"html":"<div style=\"font-family:sans-serif;border:1px solid #e0e0e0;border-radius:8px;padding:16px;max-width:600px;background:#ffffff;color:#111111;\"><p style=\"margin:0 0 4px;font-size:11px;color:#666;\">AI Glossary — gaks.ai</p><h3 style=\"margin:0 0 8px;font-size:16px;\">Top-K Sampling</h3><p style=\"margin:0 0 12px;font-size:14px;line-height:1.6;\">A decoding strategy that restricts token selection to only the K most probable next tokens, sampling randomly from that shortlist. It prevents the model from choosing very unlikely tokens while still introducing variety, and the value of K controls the tradeoff between diversity and coherence.  See also: top-p sampling, sampling.</p><a href=\"https://gaks.ai/glossary/top-k-sampling\" style=\"font-size:12px;color:#0077aa;\">Source: gaks.ai/glossary/top-k-sampling →</a></div>"}