Function: similarity()
similarity(
embedding1
,embedding2
,mode
):number
The similarity between two embeddings.
Parameters
• embedding1: number
[]
• embedding2: number
[]
• mode: SimilarityType
= SimilarityType.DEFAULT
Returns
number
similarity score with higher numbers meaning the two embeddings are more similar