Skip to content

Commit d34d9e8

Browse files
committed
fix: additional clarification for old APIs
1 parent 23f4230 commit d34d9e8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

articles/search/hybrid-search-how-to-query.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,17 @@ Both "k" and "top" are optional. Unspecified, the default number of results in a
349349
> [!NOTE]
350350
> If you're using hybrid search in 2024-05-01-preview API, you can control the number of results from the keyword query using [maxTextRecallSize](#set-maxtextrecallsize-and-countandfacetmode-preview). Combine this with a setting for "k" to control the representation from each search subsystem (keyword and vector).
351351
352-
> [!TIP]
353-
> If you're using semantic ranking in 2024-05-01-preview API, it's a best practice to set "k" and "maxTextRecallSize" to sum to at least 50 total. The semantic ranker can take up to 50 results. You can then restrict the results returned to the user with the "top" parameter.
352+
#### Semantic ranker results
353+
354+
> [!NOTE]
355+
> The semantic ranker can take up to 50 results.
356+
357+
If you're using semantic ranking in 2024-05-01-preview API, it's a best practice to set "k" and "maxTextRecallSize" to sum to at least 50 total. You can then restrict the results returned to the user with the "top" parameter.
358+
359+
If you're using semantic ranking in previous APIs do the following:
360+
361+
- if doing keyword-only search (no vector) set "top" to 50
362+
- if doing hybrid search set "k" to 50, to ensure that the semantic ranker gets at least 50 results.
354363

355364
### Ranking
356365

0 commit comments

Comments
 (0)