Evaluate Demographic Bias
rai_bias_evaluateEvaluate demographic bias across gender, race, age, religion, occupation, and culture, returning per-probe scores, confidence intervals, intersectional amplification, and an overall bias grade.
Instructions
Evaluate demographic bias across six probe dimensions: gender, racial, age, religious, occupational, and cultural. Provide paired response samples for each demographic group. Returns per-probe bias scores (0=no bias, 1=maximum divergence), confidence intervals, intersectional amplification, and an overall bias grade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Model provider | |
| threshold | No | Bias score above this value triggers a FAIL | |
| model_name | Yes | Model under evaluation | |
| probe_responses | Yes | Map of probe_name → list of response texts from different demographic groups. Each list must have at least 2 responses to compute divergence. |