Skip to content

Commit 0218045

Browse files
Merge pull request #244364 from robertklee/robertklee/vectors-overview
[azuresearch] improve similarity docs
2 parents 634788a + 64571ea commit 0218045

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/search/vector-search-overview.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ In order to create effective embeddings for vector search, it's important to tak
9494

9595
For example, documents that talk about different species of dogs would be clustered close together in the embedding space. Documents about cats would be close together, but farther from the dogs cluster while still being in the neighborhood for animals. Dissimilar concepts such as cloud computing would be much farther away. In practice, these embedding spaces are very abstract and don't have well-defined, human-interpretable meanings, but the core idea stays the same.
9696

97-
Popular vector similarity metrics include: `euclidean distance`, `cosine similarity`, and `dot product`.
97+
Popular vector similarity metrics include the following, which are all supported by Azure Cognitive Search.
98+
99+
+ `euclidean`: Also known as _l2-norm_, this measures the length of the vector difference between two vectors.
100+
+ `cosine`: This measures the angle between two vectors, and is not affected by differing vector lengths.
101+
+ `dotProduct`: This measures both the length of each of the pair of two vectors, and the angle between them. For normalized vectors, this is identical to `cosine` similarity, but slightly more performant.
98102

99103
### Approximate Nearest Neighbors
100104

0 commit comments

Comments
 (0)