Evaluates whether an output is deterministic or not by following specific rules or patterns. This evaluation is particularly versatile as it can be applied across multiple modalities including text, images, conversations, and custom outputs. It verifies if the generated content adheres to predefined rules, formats, or expected patterns.
Input:
Input
must adhere to. You can use double-curly braces like {{column_name}}
which will be substituted with actual input data from column column_name
during evaluation.Multi Choice
is enabled, the evaluation checks if the Input
matches one of these choices based on the Rule Prompt
.true
/false
) indicating whether the evaluation involves selecting from the predefined Choices
(true) or simply evaluating the Input
against the Rule Prompt
(false).Output:
Click here to learn how to setup evaluation using the Python SDK.
Input Type | Parameter | Type | Description |
---|---|---|---|
Configuration Parameters | input | string | The actual output or content generated by the model/system that needs to be evaluated against the rules. |
rule_prompt | string | A string defining the specific rules, patterns, or criteria the Input must adhere to. You can use double-curly braces like {{column_name}} which will be substituted with actual input data from column column_name during evaluation. | |
choices | list[string] | A list of predefined options or categories. Used when multi_choice is true. | |
multi_choice | bool | If true, evaluates if the input matches one of the choices based on the rule_prompt . If false, evaluates input against rule_prompt . |
Output | Type | Description |
---|---|---|
Result | string / list[string] | Returns the matching choice(s) |