interface DocumentRelevanceEvaluatorArgs<
    RecordType extends
        Record<string, unknown> = DocumentRelevanceEvaluationRecord,
> {
    choices?: ClassificationChoicesMap;
    inputMapping?: ObjectMapping<RecordType>;
    model: LanguageModel;
    name?: string;
    optimizationDirection?: OptimizationDirection;
    promptTemplate?: PromptTemplate;
    telemetry?: TelemetryConfig;
}

Type Parameters

Hierarchy

Properties

inputMapping?: ObjectMapping<RecordType>

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

model: LanguageModel
name?: string
optimizationDirection?: OptimizationDirection
promptTemplate?: PromptTemplate
telemetry?: TelemetryConfig