Variable AggregateScoresSchemaConst
AggregateScoresSchema: ZodObject<
{
faithfulness: ZodOptional<ZodNumber>;
contextRelevance: ZodOptional<ZodNumber>;
answerRelevance: ZodOptional<ZodNumber>;
contextRecall: ZodOptional<ZodNumber>;
contextPrecision: ZodOptional<ZodNumber>;
overall: ZodNumber;
},
$loose,
> = ...
Aggregate scores across the dataset — averaged per metric plus
overall.Named built-in metrics (
faithfulness,contextRelevance, etc.) are typed as optional so results from evaluations that only run a subset of metrics are still valid. Custom metric scores (any other string key) are allowed via the index signature and appear alongside the built-in fields at runtime.overallis always present — it is the unweighted mean of all metrics that were actually computed (skipped metrics are excluded).