BiasDetectionMetric
uses the evaluateBias
function to assess the text for any indications of bias.
evaluateBias
Functionoutput
: The text generated by the model.BiasDetectionMetric
ClassBiasDetectionMetric
detects bias within the text provided.
output
: The text to be evaluated for bias.evaluateSteps
method calls evaluateBias
and provides a detailed result, including a bias score. The score quantifies the extent of bias, with a detailed explanation provided for scores indicating significant bias.