Freigeben über


SearchModelFactory.KnowledgeBaseReference Method

Definition

Initializes a new instance of KnowledgeBaseReference.

public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference KnowledgeBaseReference(string type = default, string id = default, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary<string,object> sourceData = default, float? rerankerScore = default);
static member KnowledgeBaseReference : string * string * int * System.Collections.Generic.IReadOnlyDictionary<string, obj> * Nullable<single> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference
Public Shared Function KnowledgeBaseReference (Optional type As String = Nothing, Optional id As String = Nothing, Optional activitySource As Integer = 0, Optional sourceData As IReadOnlyDictionary(Of String, Object) = Nothing, Optional rerankerScore As Nullable(Of Single) = Nothing) As KnowledgeBaseReference

Parameters

type
String

The type of the reference.

id
String

The ID of the reference.

activitySource
Int32

The source activity ID for the reference.

sourceData
IReadOnlyDictionary<String,Object>

Dictionary of <any>.

rerankerScore
Nullable<Single>

The reranker score for the document reference.

Returns

A new KnowledgeBaseReference instance for mocking.

Applies to