A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
A list of chat messages forming the prompt or context. May include variable references to the item namespace, ie {{item.name}}.
A message input to the model with a role indicating instruction following
hierarchy. Instructions given with the developer or system role take
precedence over instructions given with the user role. Messages with the
assistant role are presumed to have been generated by the model in previous
interactions.
Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
A text input to the model.
An image input block used within EvalItem content arrays.
A list of inputs, each of which may be either an input text, output text, input image, or input audio object.
A text input to the model.
An image input block used within EvalItem content arrays.
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
A TextSimilarityGrader object which grades text based on similarity metrics.