A ScoreModelGrader object that uses a model to assign a score to the input.

interface ScoreModel {
    input: OpenAIClient.Evals.EvalRetrieveResponse.ScoreModel.Input[];
    model: string;
    name: string;
    pass_threshold?: number;
    range?: number[];
    sampling_params?: unknown;
    type: "score_model";
}

Properties

The input text. This may include template strings.

model: string

The model to use for the evaluation.

name: string

The name of the grader.

pass_threshold?: number

The threshold for the score.

range?: number[]

The range of the score. Defaults to [0, 1].

sampling_params?: unknown

The sampling parameters for the model.

type: "score_model"

The object type, which is always score_model.