SearchModelFactory.WebKnowledgeSourceParams Method

Definition

Specifies runtime parameters for a web knowledge source.

public static Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams WebKnowledgeSourceParams(string knowledgeSourceName = default, bool? includeReferences = default, bool? includeReferenceSourceData = default, float? rerankerThreshold = default, string language = default, string market = default, int? count = default, string freshness = default);
static member WebKnowledgeSourceParams : string * Nullable<bool> * Nullable<bool> * Nullable<single> * string * string * Nullable<int> * string -> Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams
Public Shared Function WebKnowledgeSourceParams (Optional knowledgeSourceName As String = Nothing, Optional includeReferences As Nullable(Of Boolean) = Nothing, Optional includeReferenceSourceData As Nullable(Of Boolean) = Nothing, Optional rerankerThreshold As Nullable(Of Single) = Nothing, Optional language As String = Nothing, Optional market As String = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional freshness As String = Nothing) As WebKnowledgeSourceParams

Parameters

knowledgeSourceName
String

The name of the index the params apply to.

includeReferences
Nullable<Boolean>

Indicates whether references should be included for data retrieved from this source.

includeReferenceSourceData
Nullable<Boolean>

Indicates whether references should include the structured data obtained during retrieval in their payload.

rerankerThreshold
Nullable<Single>

The reranker threshold all retrieved documents must meet to be included in the response.

language
String

The language of the web results.

market
String

The market of the web results.

count
Nullable<Int32>

The number of web results to return.

freshness
String

The freshness of web results.

Returns

A new WebKnowledgeSourceParams instance for mocking.

Applies to