Arize Phoenix TS
    Preparing search index...

    Interface CreateCriteriaClassificationEvaluatorArgs<RecordType>

    The arguments for creating a criteria classification evaluator: a classification evaluator whose choices are a list of criteria, all answered in one backend request with one result per criterion.

    interface CreateCriteriaClassificationEvaluatorArgs<
        RecordType extends Record<string, unknown>,
    > {
        choices: readonly Criterion[];
        inputMapping?: ObjectMapping<RecordType>;
        model: DecisionModel | LanguageModel;
        name: string;
        optimizationDirection?: OptimizationDirection;
        promptTemplate: PromptTemplate;
        telemetry?: TelemetryConfig;
    }

    Type Parameters

    • RecordType extends Record<string, unknown>

    Hierarchy

    Index
    choices: readonly Criterion[]

    The criteria to classify the example against. At least one is required, and names must be unique.

    inputMapping?: ObjectMapping<RecordType>

    The mapping of the input to evaluate to the shape that the evaluator expects

    model: DecisionModel | LanguageModel
    name: string

    The name of the metric that the evaluator produces E.x. "correctness"

    optimizationDirection?: OptimizationDirection

    If present, represents the direction in which you want the metric to be optimized E.x. "MAXIMIZE" means you want the number to be higher.

    promptTemplate: PromptTemplate

    The prompt template to use for classification

    telemetry?: TelemetryConfig