class

OpenAI::GraderScoreModel

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(type_value : GraderScoreModelType = GraderScoreModelType::ScoreModel, name : String = "", model : String = "", sampling_params : GraderScoreModelSamplingParams | Nil = nil, input : Array(EvalItem) = [] of EvalItem, range : Array(Float64) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input

The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.

Source
input=(input : Array(EvalItem))

The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.

Source
model

The model to use for the evaluation.

Source
model=(model : String)

The model to use for the evaluation.

Source
name

The name of the grader.

Source
name=(name : String)

The name of the grader.

Source
range

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

Source
range=(range : Array(Float64) | Nil)

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

Source
sampling_params

The sampling parameters for the model.

Source
sampling_params=(sampling_params : GraderScoreModelSamplingParams | Nil)

The sampling parameters for the model.

Source
type_value

The object type, which is always score_model.

Source
type_value=(type_value : GraderScoreModelType)

The object type, which is always score_model.

Source