Supported in: Batch
Returns the similarity score of two embedding vectors.
Expression categories: Numeric
Type variable bounds: T accepts Embedded vector
Output type: Double
Description: Cosine similarity of the Ada embeddings for the word 'palantir' and 'foundry'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
COSINE_SIMILARITY
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.0046147984, -0.014344796, -0.022795992, -0.035806388, -0.028467191, 0.026243191, -0.028161392, ... | 0.7814455755180517 |
Description: Cosine similarity between the Ada embeddings for the word 'palantir'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
COSINE_SIMILARITY
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | 1.0 |
Description: Dot product of the Ada embeddings for the word 'palantir' and 'foundry'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
DOT_PRODUCT
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.0046147984, -0.014344796, -0.022795992, -0.035806388, -0.028467191, 0.026243191, -0.028161392, ... | 0.7814455030932973 |
Description: Dot product of the Ada embeddings for the word 'palantir'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
DOT_PRODUCT
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | 1.0 |
Description: Euclidean distance between the Ada embeddings for the word 'palantir' and 'foundry'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
EUCLIDEAN_DISTANCE
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.0046147984, -0.014344796, -0.022795992, -0.035806388, -0.028467191, 0.026243191, -0.028161392, ... | 0.6611420486192364 |
Description: Euclidean distance between the Ada embeddings for the word 'palantir'. Argument values:
leftEmbeddedVector
rightEmbeddedVector
EUCLIDEAN_DISTANCE
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | [ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0... | 0.0 |
Description: Null inputs should have a null output Argument values:
leftEmbeddedVector
rightEmbeddedVector
COSINE_SIMILARITY
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
null | null | null |
Description: Null inputs should have a null output Argument values:
leftEmbeddedVector
rightEmbeddedVector
DOT_PRODUCT
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
null | null | null |
Description: Null inputs should have a null output Argument values:
leftEmbeddedVector
rightEmbeddedVector
EUCLIDEAN_DISTANCE
leftEmbeddedVector | rightEmbeddedVector | Output |
---|---|---|
null | null | null |