Skip to content

Commit 0c3b3a3

Browse files
Merge pull request #1844 from HeidiSteen/heidist-uuf
[azure search] UUF fix, add NOTE that RRF is used if multiple queries execute in parallel
2 parents 243c764 + 187afdb commit 0c3b3a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/search/vector-search-ranking.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ms.service: azure-ai-search
99
ms.custom:
1010
- ignite-2023
1111
ms.topic: concept-article
12-
ms.date: 09/19/2024
12+
ms.date: 12/05/2024
1313
---
1414

1515
# Relevance in vector search
1616

17-
During vector query execution, the search engine looks for similar vectors to find the best candidates to return in search results. Depending on how you indexed the vector content, the search for relevant matches is either exhaustive, or constrained to near neighbors for faster processing. Once candidates are found, similarity metrics are used to score each result based on the strength of the match.
17+
During vector query execution, the search engine looks for similar vectors to find the best candidates to return in search results. Depending on how you indexed the vector content, the search for relevant matches is either exhaustive, or constrained to nearest neighbors for faster processing. Once candidates are found, similarity metrics are used to score each result based on the strength of the match.
1818

1919
This article explains the algorithms used to find relevant matches and the similarity metrics used for scoring. It also offers tips for improving relevance if search results don't meet expectations.
2020

@@ -90,6 +90,9 @@ The algorithm finds candidate vectors to evaluate similarity. To perform this ta
9090
| `dotProduct` | This metric measures both the length of each pair of two vectors, and the angle between them. Mathematically, it calculates the products of vectors' magnitudes and the angle between them. For normalized vectors, this is identical to `cosine` similarity, but slightly more performant. |
9191
| `euclidean` | (also known as `l2 norm`) This metric measures the length of the vector difference between two vectors. Mathematically, it calculates the Euclidean distance between two vectors, which is the l2-norm of the difference of the two vectors. |
9292

93+
> [!NOTE]
94+
> If you run two or more vector queries in parallel, or if you do a hybrid search that combines vector and text queries in the same request, [Reciprocal Rank Fusion (RRF)](hybrid-search-ranking.md) is used for scoring the final search results.
95+
9396
## Scores in a vector search results
9497

9598
Scores are calculated and assigned to each match, with the highest matches returned as `k` results. The **`@search.score`** property contains the score. The following table shows the range within which a score will fall.

0 commit comments

Comments
 (0)