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.
The type of the input item. Always input_text.
Marks the exact end of a reusable prompt prefix. When ttl is omitted, the breakpoint inherits the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.
A text input to the model.
The type of the input item. Always input_text.
Marks the exact end of a reusable prompt prefix. When ttl is omitted, the breakpoint inherits the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.