v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.10
LangChain.js
langchain/evaluation
getDistanceCalculationFunction
Function getDistanceCalculationFunction
get
Distance
Calculation
Function
(
distanceType
)
:
VectorFunction
Get the distance function for the given distance type.
Parameters
distanceType
:
EmbeddingDistanceType
Returns
VectorFunction
The distance function.
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
LangChain.js - v0.2.10
Loading...
Get the distance function for the given distance type.