Arize Phoenix TS
    Preparing search index...

    Interface EvaluatorInterface<ExampleType, ResultType>

    The Base Evaluator interface This is the interface that all evaluators must implement

    interface EvaluatorInterface<
        ExampleType extends Record<string, unknown>,
        ResultType = EvaluationResult,
    > {
        evaluate: (example: ExampleType) => Promise<ResultType>;
        kind: EvaluationKind;
        name: string;
        optimizationDirection?: OptimizationDirection;
    }

    Type Parameters

    Hierarchy

    • EvaluatorDescription
      • EvaluatorInterface

    Implemented by

    Index
    evaluate: (example: ExampleType) => Promise<ResultType>

    The function that evaluates the example

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

    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