Contents

ModelJudgePrompt

A configuration for how a model-as-judge evaluator constructs its prompt.

Declaration

struct ModelJudgePrompt<Input> where Input : ModelSampleProtocol

Mentioned in

Overview

let prompt = ModelJudgePrompt<ModelSample<String>>(
    instructions: "You are a domain expert evaluating product reviews."
)

ModelJudgePrompt bundles the instructions, response presentation, and reference-data injection into a single composable value. Use it with ModelJudgeEvaluator to customize how the model as judge sees the evaluation.

Topics

Creating a prompt configuration

Customizing judge input

See Also

Model-as-judge evaluations