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 inevaluators 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
SetgenerateFailureModes 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.typemust beevaluate, andevaluationTypemust besingle_model.evaluatorsmust contain at least one evaluator.- Hosted and
PRETRAINEDmodels requiremodelName.CUSTOM_CLOUD_STORAGEmodels requiremodelId. - A hosted model must be supported for evaluation.
forceInferenceandskipInferencecannot both betrue.responseStrippingModecannot be set whenskipInferenceistrue.guidedDecodingmust set exactly one ofjsonSchema,regex, andchoice. Hosted models accept onlyjsonSchema.- A harness requires
forceInferenceset totrue, leavesskipInferenceunset, 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 setsgenerateFailureModes 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.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.