{"version":"1.0","type":"rich","provider_name":"gaks.ai AI Glossary","provider_url":"https://gaks.ai/glossary","title":"Top-P 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-P Sampling</h3><p style=\"margin:0 0 12px;font-size:14px;line-height:1.6;\">A decoding strategy, also called nucleus sampling, where the model selects the next token from the smallest set of tokens whose combined probability exceeds a threshold P. Unlike top-k sampling, the size of the candidate set varies dynamically based on the probability distribution, making it more adaptive to context.</p><a href=\"https://gaks.ai/glossary/top-p-sampling\" style=\"font-size:12px;color:#0077aa;\">Source: gaks.ai/glossary/top-p-sampling →</a></div>"}