SemanticSearchOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options for performing Semantic Search.
public class SemanticSearchOptions
type SemanticSearchOptions = class
Public Class SemanticSearchOptions
- Inheritance
-
SemanticSearchOptions
Constructors
| Name | Description |
|---|---|
| SemanticSearchOptions() | |
Properties
| Name | Description |
|---|---|
| ErrorMode |
Allows the user to choose whether a semantic call should fail completely (default / current behavior), or to return partial results. |
| MaxWait |
Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails. |
| QueryAnswer |
This parameter is only valid if the query type is 'semantic'. If set, the query returns answers extracted from key passages in the highest ranked documents.The number of answers returned can be configured by appending the pipe character '|' followed by the 'count-(number of answers)' option after the answers parameter value, such as 'extractive|count-3'. Default count is 1. The confidence threshold can be configured by appending the pipe character '|' followed by the 'threshold-(confidence threshold)' option after the answers parameter value, such as 'extractive|threshold-0.9'. Default threshold is 0.7. |
| QueryCaption |
This parameter is only valid if the query type is 'semantic'. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to 'extractive', highlighting is enabled by default, and can be configured by appending the pipe character '|' followed by the 'highlight-(true/false)' option, such as 'extractive|highlight-true'. Defaults to 'None'. |
| QueryLanguage |
A value that specifies the language of the search query. |
| QueryRewrites |
This parameter is only valid if the query type is 'semantic'. When RewritesType is set to Generative, the query terms are sent to a generative model which produces alternative query rewrites (10 by default) to help increase the recall of the request. The requested count can be configured via Count, which serializes as e.g. 'generative|count-3'. Defaults to 'None'. |
| QuerySpeller |
A value that specifies the type of the speller to use to spell-correct individual search query terms. |
| SemanticConfigurationName |
The name of a semantic configuration that will be used when processing documents for queries of type semantic. |
| SemanticFields |
The list of field names used for semantic ranking. |
| SemanticQuery |
Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic phase. |