You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/vector-search.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,12 @@ Performing vector search with Azure Cosmos DB for NoSQL requires you to define a
70
70
* “path”: the property containing the vector (required).
71
71
* “datatype”: the data type of the vector property (default Float32).
72
72
* “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 (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
+
74
79
75
80
> [!NOTE]
76
81
> 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