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/search/index-add-scoring-profiles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ You can use scoring profiles in [keyword search](search-lucene-query-architectur
35
35
36
36
You can have up to 100 scoring profiles within an index (see [service Limits](search-limits-quotas-capacity.md)), but you can only specify one profile at time in any given query.
37
37
38
-
You can use [semantic ranker](semantic-how-to-query-request.md) with scoring profiles. When multiple ranking or relevance features are in play, semantic ranking is the last step. [How search scoring works](#how-search-scoring-works-in-azure-ai-search) provides an illustration.
38
+
You can use [semantic ranker](semantic-how-to-query-request.md) with scoring profiles. When multiple ranking or relevance features are in play, semantic ranking is the last step. [How search scoring works](search-relevance-overview.md#diagram-of-ranking-algorithms) provides an illustration.
39
39
40
40
[Extra rules](#rules-for-using-functions) apply specifically to functions.
41
41
@@ -87,7 +87,7 @@ POST /indexes/hotels/docs&api-version=2024-07-01
87
87
88
88
Query parameters, including `scoringParameters`, are described in [Search Documents (REST API)](/rest/api/searchservice/documents/search-post).
89
89
90
-
For more scenarios, see the [examples](#examples) in this article.
90
+
For more scenarios, see the [example](#example-of-a-scoring-profile) in this article.
Copy file name to clipboardExpand all lines: articles/search/search-relevance-overview.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,15 @@ The query engine in Azure AI Search supports a multi-level approach to ranking s
21
21
22
22
## Levels of ranking
23
23
24
-
This section describes the levels of scoring operations. For an illustration of how they work together, see the [diagram](#diagram-of-ranking-algorithms) in this article. A [comparison of search score types and ranges](#types-of-search-scores) is also provided in this article.
24
+
This section describes the levels of scoring operations. For an illustration of how they work together, see the [diagram](#diagram-of-ranking-algorithms) in this article. A [comparison of all search score types and ranges](#types-of-search-scores) is also provided in this article.
25
25
26
-
### Level 1 (L1) ranking
26
+
| Level | Description |
27
+
|-------|-------------|
28
+
| Level 1 (L1) | Initial search score. For text queries matching on tokenized strings, results are always initially ranked using the [BM25 ranking algorithm](index-similarity-and-scoring.md). For vector queries, results are ranked using either [Hierarchical Navigable Small World (HNSW) or exhaustive K-nearest neighbor (KNN)](vector-search-ranking.md). Image search or multimodal searches are based on vector queries and scored using the vector L2 ranking algorithms. |
29
+
| Fused L1 | Unifies the search results from multiple queries and applies the [Reciprocal Ranking Fusion (RRF) algorithm](hybrid-search-ranking.md). RRF is used for hbrid queries that include text and vector components. RRF is also used when multiple vector queries execute in parallel. |
30
+
| Level 2 (L2) |[Semantic ranker](semantic-search-overview.md) applies machine reading comprehension to textual content. Semantic ranking is a premium feature that bills for use of the semantic ranking models. It's optional for text queries and vector queries that contain text, but required for [agentic retrieval (preview)](search-agentic-retrieval-concept.md). Although agentic retrieval sends multiple queries to the query engine, the ranking algorithm for agentic retrieval is the semantic ranker. |
31
+
32
+
<!-- ### Level 1 (L1) ranking
27
33
28
34
Assuming the query engine performs a scoring operation, the initial search score varies by query type.
29
35
@@ -39,11 +45,11 @@ Hybrid queries that include text and vector components are ranked using the [Rec
39
45
40
46
The L2 ranking feature in Azure AI Search is the [semantic ranker](semantic-search-overview.md) that applies machine reading comprehension to textual content. Semantic ranking is a premium feature that incurs extra charges for use of the semantic ranking models.
41
47
42
-
It's optional for text queries and vector queries that contain text, but required for [agentic retrieval (preview)](search-agentic-retrieval-concept.md). Although agentic retrieval sends multiple queries to the query engine, the ranking algorithm for agentic retrieval is the L2 ranker.
48
+
It's optional for text queries and vector queries that contain text, but required for [agentic retrieval (preview)](search-agentic-retrieval-concept.md). Although agentic retrieval sends multiple queries to the query engine, the ranking algorithm for agentic retrieval is the L2 ranker.-->
43
49
44
50
## Custom boosting logic using scoring profiles
45
51
46
-
Scoring profiles supplement a scoring algorithm by boosting the scores of matches that meet user-defined criteria. Criteria can include weighted fields, or functions that boost by freshness, proximity, magnitude, or range. There's no extra charge for using a scoring profile. To use a scoring profile, you define it in an index and then specify it on a query.
52
+
[Scoring profiles](index-add-scoring-profiles.md) are an optional feature for boosting scores based on extra user-defined criteria. Criteria can include weighted fields, or functions that boost by freshness, proximity, magnitude, or range. There's no extra charge for using a scoring profile. To use a scoring profile, you define it in an index and then specify it on a query.
47
53
48
54
Scoring logic applies to text and numeric nonvector content. You can use scoring profiles with:
49
55
@@ -66,22 +72,22 @@ Scored results are indicated for each match in the query response. This table li
66
72
67
73
| Score | Range | Algorithm|
68
74
|-------|-------|-------------|
69
-
|@search.score | 0 through unlimited |[BM25 ranking algorithm](index-similarity-and-scoring.md#scores-in-a-text-results) for text search |
70
-
|@search.score | 0.333 - 1.00 |[HNSW or exhaustive KNN algorithm](vector-search-ranking.md#scores-in-a-vector-search-results) for vector search |
71
-
|@search.score | 0 through an upper limit determined by the number of queries |[RRF algorithm](hybrid-search-ranking.md#scores-in-a-hybrid-search-results)|
|@search.rerankerScoreBoosted | 0.00 - 4.00 | Semantic ranking algorithm for L2 ranking and custom boosting through a scoring profile |
75
+
|`@search.score`| 0 through unlimited |[BM25 ranking algorithm](index-similarity-and-scoring.md#scores-in-a-text-results) for text search |
76
+
|`@search.score`| 0.333 - 1.00 |[HNSW or exhaustive KNN algorithm](vector-search-ranking.md#scores-in-a-vector-search-results) for vector search |
77
+
|`@search.score`| 0 through an upper limit determined by the number of queries |[RRF algorithm](hybrid-search-ranking.md#scores-in-a-hybrid-search-results)|
|`@search.rerankerScoreBoosted`| 0.00 - 4.00 | Semantic ranking algorithm for L2 ranking and custom boosting through a scoring profile |
74
80
75
81
## Diagram of ranking algorithms
76
82
77
-
The following diagram illustrates how the ranking algorithms are used together.
83
+
The following diagram illustrates how the ranking algorithms work together.
78
84
79
85
:::image type="content" source="media/scoring-profiles/scoring-over-ranked-results.png" alt-text="Diagram showing which fields have a scoring profile and when ranking occurs.":::
80
86
81
87
> [!NOTE]
82
88
> This workflow diagram currently omits `@search.rerankerScoreBoosted` and a step for semantic ranking with boosting from a scoring profile. If you use semantic ranking with scoring profile, the scoring profile is applied after L2 ranking, and the final score is based on `@search.rerankerScoreBoosted`.
83
89
84
-
A query that generates the previous workflow might look like the following example.
90
+
A query that generates the previous workflow might look like the following example. Because the latest preview REST API is used, this hybrid semantic query is scored using RRF (based on L1 scores for text and vectors), semantic ranking, and scoring profiles. The `@search.rerankerScoreBoosted` score determines the order.
85
91
86
92
```http
87
93
POST https://{{search-service-name}}.search.windows.net/indexes/{{index-name}}/docs/search?api-version=2025-05-01-preview
0 commit comments