Parameters
- type: "criteria" | "labeled_criteria"
- options: EmbeddingDistanceEvalChainInput & {
agentTools?: StructuredToolInterface[];
chainOptions?: Partial<Omit<LLMEvalChainInput, "llm">>;
criteria?: CriteriaLike;
llm?: BaseLanguageModelInterface;
} & {
formatEvaluatorInputs?: (
run: Run,
example: Example,
) => { prediction: string; input?: string; reference?: string };
}Optional
agentTools?: StructuredToolInterface[]
Optional
chainOptions?: Partial<Omit<LLMEvalChainInput, "llm">>
Optional
criteria?: CriteriaLike
Optional
llm?: BaseLanguageModelInterface
Optional
formatEvaluatorInputs?: (
run: Run,
example: Example,
) => { prediction: string; input?: string; reference?: string }
Returns Promise<(run: Run, example: Example) => Promise<{ key: string }>>
Evaluator consumable by evaluate
Type of string evaluator, one of "criteria" or "labeled_criteria