Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/search/partials/vector-search-field-descriptions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ Smaller euclidean distances mean that the values of each coordinate in the vecto
+
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.

* *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.
This metric is not affected by the size of the vectors being measured.
+
Use *cosine* similarity to get the best results with an embedding model that uses cosine similarity.
Cosine similarity works well for semantic search, document classification, and recommendation systems.
+
The Search Service will normalize any vectors in your documents before indexing when using cosine similarity.
It will also normalize any vectors in your queries if the field for those queries uses cosine similarity.
Use *dot_product* similarity if your vectors are already normalized.

For more information about Vector Search indexes, see xref:vector-search:vector-search.adoc[] or xref:vector-search:create-vector-search-index-ui.adoc[].
// end::similarity_metric[]
// tag::dimension[]
Expand Down