Skip to main content

evaluate(options)

Run an evaluation against a dataset.
Parameters:Returns: Promise<EvaluationRunResult | undefined>If invoked in “prepare only” mode, returns undefined.Return shape:

LaminarDataset

Load a dataset from Laminar.
Constructor parameters:Methods:
  • size() — Returns number of datapoints
  • get(index) — Get datapoint by index
  • slice(start, end) — Get range of datapoints
  • push(paths, recursive?) — Upload local files
Note: Requires exactly one of name or id.

EvaluationDataset

Abstract base class for custom datasets.
Methods to implement:
  • size(): Promise<number> | number
  • get(index: number): Promise<Datapoint> | Datapoint
Provided:
  • slice(start, end) — Helper using get()

HumanEvaluator

Placeholder for human evaluation.
Note: Creates spans with type HUMAN_EVALUATOR and null scores for later human annotation.