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: modules/search/partials/vector-search-field-descriptions.adoc
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,16 @@ Smaller euclidean distances mean that the values of each coordinate in the vecto
36
36
+
37
37
It's best to use *l2_norm* similarity when your embeddings contain information about the count or measure of specific things, and your embedding model uses the same similarity metric.
38
38
39
+
* *cosine*: Calculated by adding the result of multiplying a vector's components, or the product of the magnitudes of the vectors and the cosine of the angle between them.
40
+
This metric is not affected by the size of the vectors being measured.
41
+
+
42
+
Use *cosine* similarity to get the best results with an embedding model that uses cosine similarity.
43
+
Cosine similarity works well for semantic search, document classification, and recommendation systems.
44
+
+
45
+
The Search Service will normalize any vectors in your documents before indexing when using cosine similarity.
46
+
It will also normalize any vectors in your queries if the field for those queries uses cosine similarity.
47
+
Use *dot_product* similarity if your vectors are already normalized.
48
+
39
49
For more information about Vector Search indexes, see xref:vector-search:vector-search.adoc[] or xref:vector-search:create-vector-search-index-ui.adoc[].
0 commit comments