|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.SetTopK |
Top |
MiniRobotLanguage (MRL)
AIC.SetTopK
Set the top_k value for sampling
Intention
The AIC.SetTopK command limits the AI to sample from only the top K most likely tokens at each step. Used by some models to control output diversity.
Syntax
AIC.SetTopK|$$TopKValue
Parameters
P1 - $$TopKValue - Top-K value (e.g., 40, 50). Lower values restrict to more likely tokens.
Example
' Restrict to top 40 tokens
AIC.SetTopK|40
AIC.Ask|Explain machine learning|$$Explanation
DBP.$$Explanation
Related Commands
- AIC.SetTopP - Set top_p
- AIC.SetTemp - Set temperature