Skip to content

Commit 0981bf9

Browse files
authored
Update vector-search.md
1 parent 1ef18c6 commit 0981bf9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/cosmos-db/nosql/vector-search.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ Performing vector search with Azure Cosmos DB for NoSQL requires you to define a
7070
* “path”: the property containing the vector (required).
7171
* “datatype”: the data type of the vector property (default Float32). 
7272
* “dimensions”: The dimensionality or length of each vector in the path. All vectors in a path should have the same number of dimensions. (default 1536).
73-
* “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).
73+
* “distanceFunction”: The metric used to compute distance/similarity. Supported metrics are:
74+
* [cosine](https://en.wikipedia.org/wiki/Cosine_similarity), which has values from -1 (least similar) to +1 (most similar).
75+
* [dotproduct](https://en.wikipedia.org/wiki/Dot_product), which has values from -inf (least simialr) to +inf (most similar).
76+
* [euclidean](https://en.wikipedia.org/wiki/Euclidean_distance), which has values from 0 (most similar) to +inf) (least similar).
77+
78+
7479

7580
> [!NOTE]
7681
> Each unique path can have at most one policy. However, multiple policies can be specified provided that they all target a different path.

0 commit comments

Comments
 (0)