Navigation :
similarity
similarity, function
def pure similarity(a: embedding, b: embedding): number
Returns a similarity score between two embeddings. Higher scores indicate
greater similarity.
Example
table T = with
[| as Left, as Right |]
[| "blue shirt", "navy shirt" |]
[| "forklift", "supply chain" |]
T.L = embedding(T.Left)
T.R = embedding(T.Right)
T.Score = similarity(T.L, T.R)
show table "Similarity" with
T.Left
T.Right
T.Score
See also