AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Set Parameters > Use the STOP-Parameter >

AIC. - Artificial Intelligence Command

AIC.Add to Stop

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Add to Stop

Will add more stop sequences for the AI

 

 

Intention

 

The AIC.Add to Stop command is a useful tool that allows you to add additional stop sequences to the existing set of stop sequences for the AI model.

This command is particularly useful when you want the model to stop generating text upon encountering any one of several different sequences.

 

The syntax for the AIC.Add to Stop command is as follows:

 

AIC.Add to Stop|<stop_sequence>

 

Here, <stop_sequence> is the sequence of characters that, when encountered, will signal the model to stop generating further tokens.

 

The <stop_sequence> can be any string of characters. It could be

a single character,

a word,

a sentence, or even

a special characters like newline (\n) or tab (\t).

 

For example, if you want the model to stop generating text after it produces a newline character or the word "END", you would use the command like this:

 

' See the difference in the handling of special characters, here we use "\\n"

AIC.Clear Stop

AIC.Set Stop|\\n

AIC.Add to Stop|END

 

    or use:

 

' See the difference in the handling of special characters, here we use "\n"

AIC.Clear Stop

AIC.Add to Stop|\n

AIC.Add to Stop|END

 

 

  In this case, the model will stop generating text when it encounters either a newline character or the word "END".

 

Special Characters

If you want to use special characters in the <stop_sequence>, you don't need to escape them. The command will automatically handle the escaping for you.

For example, to use a newline character, you would simply write \n, not \\n.

 

For more Details see "Using the STOP-Flag".

 

 

 

Syntax

 

 

AIC.Add to Stop|P1

 

 

Parameter Explanation

 

P1 - Variable or String to Set the STOP-Parameter.

 

 

 

 

Example

 

'***********************************

'

'***********************************

 

 

 

 

 

Remarks

 

The AIC.Add to Stop command is a tool to help you control the output of the model. The best way to use it can depend on your specific use case. It's a good idea to experiment with different values to see what works best for your needs.

You can use the AIC.Add to Stop command multiple times to add multiple stop sequences.

If you want to clear all stop sequences, you can use the AIC.Clear command.

 

 

Limitations:

 

-

 

 

See also: