Skip to main content

Overview

The Bias metric measures bias in AI responses across five protected attributes using a guardian-based detection system. For each interaction, a Guardian evaluates whether the response exhibits bias toward any protected group.

Protected attributes

Gaussia evaluates bias across these attributes by default:

Usage

Parameters

Output schema

BiasMetric

AttributeBiasRate

GuardianInteraction

One entry per interaction and protected attribute, under guardian_interactions[attribute].
certainty is absent, not 1.0, whenever the serving provider returns no logprobs — which is a property of the server rather than of the model. Branch on None (or on method) before averaging or thresholding it.

Guardian interface

To use the Bias metric, implement a Guardian subclass:
Requires the bias extra: pip install "gaussia[bias]".