• Preparing search index...
  • The search index is not available
LangChain.js - v0.2.8
  • LangChain.js
  • langchain/evaluation
  • computeEvaluationScore

Function computeEvaluationScore

  • computeEvaluationScore(vectors, distanceMetric): number
  • Compute the score based on the distance metric.

    Parameters

    • vectors: number[][]

      The input vectors.

    • distanceMetric: EmbeddingDistanceType

      The distance metric.

    Returns number

    The computed score.

    • Defined in langchain/src/evaluation/embedding_distance/base.ts:76

Settings

Member Visibility

Theme

LangChain.js - v0.2.8
  • Loading...

Generated using TypeDoc