Contents

init(judge:dimensions:scoringMode:prompt:)

Creates a multi-metric evaluator with a custom judge prompt.

Declaration

init(judge: any LanguageModel, dimensions: [ScoreDimension], scoringMode: ScoringMode = .discrete, prompt: ModelJudgePrompt<Input>)

Parameters

  • judge:

    The language model to use as judge.

  • dimensions:

    The dimensions to score. Each produces a separate DataFrame column.

  • scoringMode:

    A value that indicates whether scores are discrete (default) or allow any floating-point value.

  • prompt:

    Configuration for the judge prompt, including instructions, response presentation, and reference.

See Also

Creating a multi-dimension evaluator