Embedding Distance Evaluation Chain Input.

interface EmbeddingDistanceEvalChainInput {
    distanceMetric?: "cosine" | "euclidean" | "manhattan" | "chebyshev";
    embedding?: any;
}

Implemented by

Properties

distanceMetric?: "cosine" | "euclidean" | "manhattan" | "chebyshev"

The distance metric to use for comparing the embeddings.

embedding?: any

The embedding objects to vectorize the outputs.

Generated using TypeDoc