|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« AIN. - AnythingLLM AI |
MiniRobotLanguage (MRL)
AIN.GetTemperature
Get the Current Temperature Setting
Intention
GetTemperature Command: Retrieve Response Randomness
The AIN.GetTemperature command retrieves the current temperature setting used by AnythingLLM for generating responses.
Temperature controls the randomness of AI outputs, with lower values being more deterministic and higher values more creative.
It’s part of the AIN - AnythingLLM AI suite.
This command fetches the temperature value currently configured in the AnythingLLM system.
The result can be stored in a variable or left on the stack for further processing.
Retrieving the temperature setting is useful for:
•Verification: Confirms the current randomness level before generating responses.
•Debugging: Helps diagnose unexpected AI behavior tied to temperature settings.
•Automation: Allows scripts to adapt based on the current configuration.
Execute the command with an optional variable to store the temperature value.
It retrieves the setting from the current AnythingLLM configuration, assuming a prior setting exists.
Example Usage
AIN.GetTemperature|$$TMP
DBP.Current Temperature: $$TMP
Retrieves and displays the current temperature setting.
Illustration
┌──────────────────┐
│ Temperature │
├──────────────────┤
│ Value: 0.7 │
└──────────────────┘
Represents the retrieved temperature value.
Syntax
AIN.GetTemperature[|P1]
AIN.GTM[|P1]
Parameter Explanation
P1 - (Optional) Variable to store the current temperature value (e.g., a float like 0.7); defaults to TOS if omitted.
Example
AIN.GetTemperature|$$TMP
IVV.$$TMP>=0
DBP.Temperature is $$TMP
ELS.
DBP.No temperature set or invalid
EIF.
ENR.
Remarks
- Assumes a temperature has been previously set (e.g., via a hypothetical AIN.SetTemperature command).
- Returns a numeric value, typically between 0 and 1, though the range may depend on AnythingLLM’s implementation.
Limitations
- Returns an undefined or default value if no temperature has been set.
- Requires an active AnythingLLM configuration to retrieve meaningful data.
See also: