AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.SetFrequencyPenalty

Top


MiniRobotLanguage (MRL)

 

AIC.SetFrequencyPenalty

Reduce word repetition

 

Intention

 

The AIC.SetFrequencyPenalty command penalizes tokens based on how often they appear in the text. Higher values reduce repetition of the same words/phrases in responses.

 

Syntax

 

AIC.SetFrequencyPenalty|$$Value

 

P1 - $$Value - Penalty -2.0 to 2.0 (default: 0)

 

Penalty Values

 

0.0: No penalty (default)

0.5: Mild repetition reduction

1.0: Strong repetition reduction

2.0: Maximum penalty

 

Example

 

' Reduce repetition in long texts

AIC.SetFrequencyPenalty|0.5

AIC.Ask|Write a story about a cat|$$Story

 

' For technical writing

AIC.SetFrequencyPenalty|0.3

 

Related Commands

 

- AIC.SetPresencePenalty - Topic diversity

- AIC.SetTemperature - Creativity control