Skip to main content
Score represents a single metric or assessment within an evaluation result.

Schema

At least one of value or passed must be provided.

Fields

key (required)

A string identifier for the metric. Use descriptive names:

value (optional)

A numeric score, typically in the 0-1 range:

passed (optional)

A boolean indicating pass/fail:

notes (optional)

Human-readable explanation:

Score Types

Boolean Score

Simple pass/fail:

Numeric Score

Continuous metric:

Combined Score

Both numeric and boolean:

Creating Scores

Via store()

The recommended way:

Direct Construction

For evaluators or manual creation:

Multiple Scores

An evaluation can have multiple scores:
Result:

Score Aggregation

The CLI and Web UI aggregate scores:

Default Score Key

Set via decorator to name auto-created scores:

Auto-Scoring

If no score is added, EZVals creates one automatically:

Best Practices