interface HallucinationEvaluatorArgs {
    choices?: ClassificationChoicesMap;
    model: LanguageModel;
    name?: string;
    optimizationDirection?: OptimizationDirection;
    promptTemplate?: string;
    telemetry?: { isEnabled?: boolean; tracer?: Tracer };
}

Hierarchy

  • Omit<
        CreateClassificationEvaluatorArgs,
        "promptTemplate"
        | "choices"
        | "optimizationDirection"
        | "name",
    >
    • HallucinationEvaluatorArgs

Properties

model: LanguageModel
name?: string
optimizationDirection?: OptimizationDirection
promptTemplate?: string
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.