Embedding Distance Evaluation Chain Input.

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

Implemented by

Properties

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

The distance metric to use for comparing the embeddings.

embedding?: EmbeddingsInterface

The embedding objects to vectorize the outputs.

Generated using TypeDoc