Type Alias EmbeddingDistance
EmbeddingDistance: { agentTools?: undefined | StructuredToolInterface<ZodObjectAny>[]; chainOptions?: undefined | Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>>, "llm">>; criteria?: undefined | CriteriaLike; distanceMetric?: undefined | EmbeddingDistanceType; embedding?: undefined | EmbeddingsInterface; evaluatorType: "embedding_distance"; feedbackKey: undefined | string; formatEvaluatorInputs: EvaluatorInputFormatter; llm?: undefined | BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>; } Type declaration
Optional
agentTools?: undefined | StructuredToolInterface<ZodObjectAny>[]
Optional
chainOptions?: undefined | Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>>, "llm">>
Optional
criteria?: undefined | CriteriaLike
Optional
embedding?: undefined | EmbeddingsInterface
evaluatorType: "embedding_distance"
feedbackKey: undefined | string
Optional
llm?: undefined | BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>
Configuration to load a "EmbeddingDistanceEvalChain" evaluator, which embeds distances to score semantic difference between a prediction and reference.