You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `weight` | `1.0` | Relative importance for scoring |
71
72
| `required` | `false` | If true, failing this criterion fails the entire eval |
72
73
| `min_score` | — | Minimum score (0–1) for this criterion to pass |
@@ -76,6 +77,26 @@ assertions:
76
77
`required_min_score` (0–10 integer scale) is deprecated. Use `min_score` (0–1 scale) instead. For example, `required_min_score: 8` becomes `min_score: 0.8`.
77
78
:::
78
79
80
+
### Criterion Operators
81
+
82
+
Use `operator` when the criterion outcome should be interpreted with a specific grading intent instead of relying on the wording in `outcome`.
83
+
84
+
```yaml
85
+
assertions:
86
+
- type: rubrics
87
+
criteria:
88
+
- id: supported-revenue
89
+
operator: correctness
90
+
outcome: States revenue increased to $10M
91
+
required: true
92
+
- id: no-revenue-conflict
93
+
operator: contradiction
94
+
outcome: Revenue increased to $10M
95
+
required: true
96
+
```
97
+
98
+
`correctness` requires the answer to positively satisfy the outcome. `contradiction` is a guard: the answer passes when it does not make an incompatible claim, even if it omits the outcome entirely.
99
+
79
100
## Score-Range Mode (Analytic)
80
101
81
102
For quality gradients instead of binary pass/fail, use score ranges:
'Correctness: mark satisfied only when the answer positively supports or fulfills the outcome. Omission or contradiction should not satisfy it.',
6
+
contradiction:
7
+
'Contradiction guard: mark satisfied when the answer does not make a claim that contradicts the outcome. Do not require the answer to mention the outcome; mark unsatisfied only for incompatible claims.',
`Ignoring invalid operator for rubric '${rubricId}' in evaluator '${evaluatorName}' in '${evalId}': must be one of ${RUBRIC_OPERATOR_VALUES.join(', ')}`,
1962
+
);
1963
+
returnundefined;
1964
+
}
1965
+
1943
1966
/**
1944
1967
* Parse rubric items from raw YAML/JSON data.
1945
1968
* Supports both checklist rubrics and score-range rubrics.
0 commit comments