Expand description
The eval file format (*.eval.yaml) and JSONL datasets.
The shape follows Promptfoo (tests: [{vars, assert: [{type, value, threshold, weight, metric}]}], defaultTest) so test cases move between
the two tools. Keys starting with x- are ignored at the file and test level.
workflow: ../hello.yaml
providers: providers.replay.yaml # optional
dataset: cases.jsonl # optional: {id, vars, expected?, tags?, metadata?} per line
defaultTest:
assert: [{ type: latency, threshold: 2000 }]
tests:
- id: ada
vars: { name: Ada }
assert:
- { type: equals, value: "Hello, Ada." }
gate: { pass_rate: 1.0 }With calibration: the workflow under test is a judge and each test’s
expected is a human label (pass / fail): the report adds agreement,
TPR, TNR and Cohen’s kappa.
Structs§
- Assertion
Spec - One assertion as written in the file.
- Calibration
- Judge calibration settings (
calibration:in the eval file). - Eval
Suite - A parsed eval file, with relative paths resolved against its directory.
- Gate
- The CI gate.
- Test
Case - A test case ready to run.
- Tolerance
- How far results may fall below the baseline before it is a regression.
Functions§
- inputs_
of - Start inputs for the engine.
- parse_
structured - YAML or JSON text to JSON (YAML 1.2 booleans).