The arguments for creating a classification-based evaluator

interface CreateClassifierArgs {
    choices: ClassificationChoicesMap;
    model: LanguageModel;
    promptTemplate: string;
    telemetry?: { isEnabled?: boolean; tracer?: Tracer };
}

Hierarchy (View Summary)

Properties

The choices to classify the example into. e.g. { "correct": 1, "incorrect": 0 }

model: LanguageModel
promptTemplate: string

The prompt template to use for classification

telemetry?: { isEnabled?: boolean; tracer?: Tracer }

Type declaration

  • OptionalisEnabled?: boolean

    Whether OpenTelemetry is enabled on the call. Defaults to true for visibility into the evals calls.

    true
    
  • Optionaltracer?: Tracer

    The tracer to use for the call. If not provided, the traces will get picked up by the global tracer.