Skip to main content
An evaluation recipe stores the configuration of an evaluation run as a reusable template. The configuration names the model to evaluate, the evaluators that score it, the inference settings, and the dataset. Run the same recipe after each training iteration to get results that you can compare directly. To save and run recipes in the app, see Evaluation recipes. Request and response fields use camelCase. The API rejects unknown fields.

REQUEST


RECIPE CONFIG

recipeConfig selects the recipe type and holds the evaluation configuration.

EVALUATION CONFIG

evaluationConfig defines how the evaluation runs.

MODEL IDENTIFIER

modelIdentifier names the model being evaluated. modelType selects the shape. A hosted model must be one that Oumi supports for evaluation.

API KEYS

Each key is up to 255 characters of letters, digits, _, -, ., and =.

EVALUATORS

Each item in evaluators references a saved evaluator. See Evaluators.

INFERENCE CONFIG

inferenceConfig sets inference parameters for the evaluated model.

GUIDED DECODING

inferenceConfig.guidedDecoding constrains each response to a JSON Schema, a regular expression, or a fixed list of strings. Set exactly one of jsonSchema, regex, and choice. Hosted models accept only jsonSchema. The regex and choice modes work only for custom models.

DATASET

dataset references the dataset to evaluate.

HARNESS

harness selects the registered harness that runs the assistant turns for each dataset row. Harness evaluations always generate new responses. skipInference cannot be true, forceInference cannot be false, and you cannot attach tool implementations. Harness runs are behind a feature flag. See Evaluate with a harness.

RESPONSE STRIPPING MODE

responseStrippingMode controls how much of each dataset conversation inference drops before it generates new responses. The default is ALL. You cannot set this field when skipInference is true. Use LAST_MESSAGE to keep the earlier turns of a multi-turn row and regenerate only the final assistant message.

FAILURE MODES

Set generateFailureModes to true to group the failed rows of the evaluation into failure modes after the evaluation completes. A failure mode is a group of failed rows that share a cause. Oumi names each failure mode for the evaluation that produced it. Preview runs never generate failure modes. See Failure modes.

RUN REQUEST

POST /v1/projects/{project_id}/evaluations:run starts an evaluation. The request references a saved recipe or carries a recipe configuration inline.
POST /v1/projects/{project_id}/evaluations:preview takes displayName and recipe in the same shape, plus sampleSize. sampleSize is the number of dataset rows to evaluate, from 1 to 20, with a default of 5. The server prefixes the display name with Preview: .

VALIDATION RULES

  • recipeConfig.type must be evaluate, and evaluationType must be single_model.
  • evaluators must contain at least one evaluator.
  • Hosted and PRETRAINED models require modelName. CUSTOM_CLOUD_STORAGE models require modelId.
  • A hosted model must be supported for evaluation.
  • forceInference and skipInference cannot both be true.
  • responseStrippingMode cannot be set when skipInference is true.
  • guidedDecoding must set exactly one of jsonSchema, regex, and choice. Hosted models accept only jsonSchema.
  • A harness requires forceInference set to true, leaves skipInference unset, and cannot be combined with tool implementations.

EXAMPLES

BASIC EVALUATION

This example evaluates a custom model against a dataset with one evaluator. It is the minimal configuration for a reproducible evaluation.

EVALUATION WITH FAILURE MODES

This example sets generateFailureModes to true and uses two evaluators. You can use the resulting failure modes as input to a data synthesis run.

HOSTED MODEL BASELINE

This example evaluates a hosted model instead of a custom model. Use it to measure a baseline before fine-tuning, or to compare your model against a hosted model on the same dataset.
Set inferenceTemperature to 0.0 and fix inferenceSeed to make results comparable across runs. Set datasetVersion to pin the dataset when it can change between runs.