Built-in Evals
Bias Detection
Identifies various forms of bias, including gender, racial, cultural, or ideological bias in the output. It evaluates input for balanced perspectives and neutral language use.
Was this page helpful?
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Identifies various forms of bias, including gender, racial, cultural, or ideological bias in the output. It evaluates input for balanced perspectives and neutral language use.
result = evaluator.evaluate(
eval_templates="bias_detection",
inputs={
"output": "This is a sample text to check for bias detection"
},
model_name="turing_flash"
)
print(result.eval_results[0].output)
print(result.eval_results[0].reason)
import { Evaluator, Templates } from "@future-agi/ai-evaluation";
const evaluator = new Evaluator();
const result = await evaluator.evaluate(
"bias_detection",
{
output: "This is a sample text to check for bias detection"
},
{
modelName: "turing_flash",
}
);
console.log(result);
| Input | |||
|---|---|---|---|
| Required Input | Type | Description | |
output | string | The text content to analyze for bias |
| Output | ||
|---|---|---|
| Field | Description | |
| Result | Returns Passed or Failed, where Passed indicates neutral content and Failed indicates the presence of detectable bias | |
| Reason | Provides a detailed explanation of the bias assessment |
Was this page helpful?