An LLM evaluator that performs evaluation via classification

Type Parameters

  • ExampleType extends Record<string, unknown>

Hierarchy (View Summary)

Constructors

Properties

evaluatorFn: EvaluatorFn<ExampleType>
name: string

The name of the evaluator / the metric that it measures

optimizationDirection?: OptimizationDirection

The direction to optimize the numeric evaluation score E.x. "MAXIMIZE" means that the higher the score, the better the evaluation

promptTemplate: string
source: "LLM" = ...

The source of the evaluation. Also known as the "kind" of evaluator.

Accessors

  • get promptTemplateVariables(): string[]

    List out the prompt template variables needed to perform evaluation

    Returns string[]

Methods