Nirmos
Evaluations

Configure evaluator bindings

Connect generated output and dataset fields to a suite evaluator.

Create the evaluator version first, then attach it to an enabled suite column with every required input mapped. This mutation needs evaluation:create; updating a column needs evaluation:update.

await nirmos.evaluations.columns.create({
  suiteId: "suite-id", key: "exact_answer", name: "Exact answer", category: "evaluator", enabled: true,
  evaluatorVersionId: "evaluator-version-id",
  config: { inputMapping: {
    actual: { source: "target", path: "output" },
    expected: { source: "dataset", key: "expected" },
  } },
});

Use path for target output and key for dataset fields. Target input maps are a different contract: their values are dataset path strings used before generation. Unresolved required values fail the score; model text is not automatically JSON-parsed when selecting a child output path.

columns.update preserves omitted metadata and bindings. Supplying config replaces that object and must preserve required mappings. Create a new evaluator version to change scoring configuration, then attach its version ID.

Use the binding and target reference for exact contracts, segments, identifiers and errors, and the evaluator reference for supported scoring options. Prompt evaluation combines these steps.