ภาษา

SearchModelFactory.KnowledgeBaseRetrievalRequest Method

Definition

The input contract for the retrieval request.

public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest KnowledgeBaseRetrievalRequest(System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage> messages, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent> intents, int? maxRuntimeInSeconds, int? maxOutputSize, int? maxOutputDocuments, int? maxOutputSizeInTokens, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort, bool? includeActivity, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? outputMode, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams> knowledgeSourceParams, string toolName = default);
static member KnowledgeBaseRetrievalRequest : seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage> * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort * Nullable<bool> * Nullable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode> * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams> * string -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest
Public Shared Function KnowledgeBaseRetrievalRequest (messages As IEnumerable(Of KnowledgeBaseMessage), intents As IEnumerable(Of KnowledgeRetrievalIntent), maxRuntimeInSeconds As Nullable(Of Integer), maxOutputSize As Nullable(Of Integer), maxOutputDocuments As Nullable(Of Integer), maxOutputSizeInTokens As Nullable(Of Integer), retrievalReasoningEffort As KnowledgeRetrievalReasoningEffort, includeActivity As Nullable(Of Boolean), outputMode As Nullable(Of KnowledgeRetrievalOutputMode), knowledgeSourceParams As IEnumerable(Of KnowledgeSourceParams), Optional toolName As String = Nothing) As KnowledgeBaseRetrievalRequest

Parameters

messages
IEnumerable<KnowledgeBaseMessage>

A list of chat message style input.

intents
IEnumerable<KnowledgeRetrievalIntent>

A list of intended queries to execute without model query planning.

maxRuntimeInSeconds
Nullable<Int32>

The maximum runtime in seconds.

maxOutputSize
Nullable<Int32>

Limits the maximum size of the content in the output.

maxOutputDocuments
Nullable<Int32>

Limits the maximum number of documents in the output.

maxOutputSizeInTokens
Nullable<Int32>

Limits the maximum size of the content in the output.

retrievalReasoningEffort
KnowledgeRetrievalReasoningEffort

The retrieval reasoning effort configuration.

includeActivity
Nullable<Boolean>

Indicates retrieval results should include activity information.

outputMode
Nullable<KnowledgeRetrievalOutputMode>

The output configuration for this retrieval.

knowledgeSourceParams
IEnumerable<KnowledgeSourceParams>

A list of runtime parameters for the knowledge sources.

toolName
String

The tool to select. Omit for KB-wide retrieval.

Returns

A new KnowledgeBaseRetrievalRequest instance for mocking.

Applies to