Arize Phoenix TS
    Preparing search index...

    An LLM evaluator that classifies an example against several criteria in one backend request, producing one CriterionResult per criterion in the order the criteria were given.

    Create one with createClassificationEvaluator by passing a list of criteria as choices.

    Type Parameters

    • RecordType extends Record<string, unknown>

    Hierarchy (View Summary)

    Implements

    Index
    choices: readonly Criterion[]

    The criteria every example is classified against

    inputMapping?: ObjectMapping<RecordType>

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

    model: DecisionModel | LanguageModel

    The model to use for classification

    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: PromptTemplate
    telemetry?: TelemetryConfig