Skip to content

Commit 4ed2884

Browse files
authored
Update vectordistance.md
1 parent 3b4540d commit 4ed2884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/nosql/query/vectordistance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ VECTORDISTANCE(<vector_expr1>, <vector_expr2>, [<bool_expr>], [<obj_expr>])
3636
| **`spatial_expr_2`** | An array of `float32` or smaller.|
3737
| **`bool_expr`** | A boolean specifying how the computed value is used in an ORDER BY expression. If `true`, then brute force is used. A value of `false` will leverage any index defined on the vector property, if it exists. Default value is `false`.|
3838
|**`obj_expr`**| A JSON formatted object literal used to specify options for the vector distance calculation. Valid items include `distanceFunction` and `dataType`.|
39-
| **`distanceFunction`** | The function used to compute similarity score.`cosine`, `euclidean`, or `dotproduct`. Default value is `cosine`.|
39+
| **`distanceFunction`** | The metric used to compute distance/similarity. Supported metrics are: [cosine](https://en.wikipedia.org/wiki/Cosine_similarity), [dotproduct](https://en.wikipedia.org/wiki/Dot_product), and [euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) (default cosine).|
4040
| **`dataType`** | The data type of the vectors. `float32`, `float16`, `int8`, `uint8` values. Default value is `float32`. |
4141

4242
## Return types

0 commit comments

Comments
 (0)