Skip to main content
Use file-level defaults to share common configuration across all evaluations in a file.

Basic Usage

Define a ezvals_defaults dictionary at the module level:
Both evaluations will have:
  • labels=["production"]
  • default_score_key="quality"
  • dataset="customer_service" (auto-inferred from filename)
The dataset field is automatically inferred from the filename when not explicitly set. File-level dataset defaults only apply if the decorator’s dataset is literally "default".

Overriding Defaults

Override specific fields in individual decorators:

Supported Default Fields

Metadata Merging

File defaults and decorator metadata are merged:
Decorator values override file defaults for the same keys.

Evaluators Behavior

Evaluators from decorators replace file defaults—they are not merged.
To use both, explicitly include them:

Organizing by File

Structure your evaluations by domain:
Each file sets its own defaults:

Complete Example