Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Graders

GradersGrader Models

Models
GraderInputs = array of string or ResponseInputText { text, type, prompt_cache_breakpoint } or OutputText { text, type } or 2 more

A list of inputs, each of which may be either an input text, output text, input image, or input audio object.

LabelModelGrader object { input, labels, model, 3 more }

A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.

MultiGrader object { calculate_output, graders, name, type }

A MultiGrader object combines the output of multiple graders to produce a single score.

PythonGrader object { name, source, type, image_tag }

A PythonGrader object that runs a python script on the input.

ScoreModelGrader object { input, model, name, 3 more }

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

StringCheckGrader object { input, name, operation, 2 more }

A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.

TextSimilarityGrader object { evaluation_metric, input, name, 2 more }

A TextSimilarityGrader object which grades text based on similarity metrics.