Skip to content

Commit f0fb24b

Browse files
committed
Formatting and H2 reduction
1 parent 8bd6aed commit f0fb24b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ In this article, learn how to:
3535

3636
+ Search Explorer in the Azure portal (supports both stable and preview API search syntax) has a JSON view that lets you paste in a hybrid request.
3737

38-
+ [**2024-07-01**](/rest/api/searchservice/documents/search-post) stable version or a recent preview API version if you're using preview features like [maxTextRecallSize and countAndFacetMode(preview)](#set-maxtextrecallsize-and-countandfacetmode).
38+
+ Newer stable or preview packages of the Azure SDKs (see change logs for SDK feature support).
3939

40-
For readability, we use REST examples to explain how the APIs work. You can use a REST client like Visual Studio Code with the REST extension to build hybrid queries. You can also use the Azure SDKs. For more information, see [Quickstart: Vector search](search-get-started-vector.md).
40+
+ [Stable REST APIs](/rest/api/searchservice/documents/search-post) or a recent preview API version if you're using preview features like [maxTextRecallSize and countAndFacetMode(preview)](#set-maxtextrecallsize-and-countandfacetmode).
4141

42-
+ Newer stable or beta packages of the Azure SDKs (see change logs for SDK feature support).
42+
For readability, we use REST examples to explain how the APIs work. You can use a REST client like Visual Studio Code with the REST extension to build hybrid queries. You can also use the Azure SDKs. For more information, see [Quickstart: Vector search](search-get-started-vector.md).
4343

4444
## Set up a hybrid query
4545

@@ -232,7 +232,11 @@ POST https://[service-name].search.windows.net/indexes/[index-name]/docs/search?
232232
}
233233
```
234234

235-
## Hybrid search with filter
235+
## Hybrid query examples
236+
237+
This section has multiple query examples that illustrate hybrid query patterns.
238+
239+
### Example: Hybrid search with filter
236240

237241
This example adds a filter, which is applied to the `filterable` nonvector fields of the search index.
238242

@@ -314,7 +318,7 @@ POST https://{{search-service-name}}.search.windows.net/indexes/{{index-name}}/d
314318
}
315319
```
316320

317-
## Semantic hybrid search
321+
### Example: Semantic hybrid search
318322

319323
Assuming that you [have semantic ranker](semantic-how-to-enable-disable.md) and your index definition includes a [semantic configuration](semantic-how-to-query-request.md), you can formulate a query that includes vector search and keyword search, with semantic ranking over the merged result set. Optionally, you can add captions and answers.
320324

@@ -357,7 +361,7 @@ api-key: {{admin-api-key}}
357361

358362
+ "captions" and "answers" are optional. Values are extracted from verbatim text in the results. An answer is only returned if the results include content having the characteristics of an answer to the query.
359363

360-
## Semantic hybrid search with filter
364+
### Example: Semantic hybrid search with filter
361365

362366
Here's the last query in the collection. It's the same semantic hybrid query as the previous example, but with a filter.
363367

@@ -429,7 +433,7 @@ Both `k` and `top` are optional. Unspecified, the default number of results in a
429433
> [!NOTE]
430434
> 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). Combine this with a setting for `k` to control the representation from each search subsystem (keyword and vector).
431435
432-
#### Semantic ranker results
436+
### Semantic ranker results
433437

434438
> [!NOTE]
435439
> The semantic ranker can take up to 50 results.

0 commit comments

Comments
 (0)