QnAMaker.GetAnswersAsync Methode

Definition

Überlädt

GetAnswersAsync(ITurnContext, QnAMakerOptions, Dictionary<String,String>, Dictionary<String,Double>)

Generiert eine Antwort aus dem Wissensdatenbank.

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Generiert eine Antwort aus dem Wissensdatenbank.

GetAnswersAsync(ITurnContext, QnAMakerOptions, Dictionary<String,String>, Dictionary<String,Double>)

Generiert eine Antwort aus dem Wissensdatenbank.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResult[]> GetAnswersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default);
abstract member GetAnswersAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResult[]>
override this.GetAnswersAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResult[]>
Public Function GetAnswersAsync (turnContext As ITurnContext, options As QnAMakerOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing) As Task(Of QueryResult())

Parameter

turnContext
ITurnContext

Der Turn Context, der die Benutzerfrage enthält, die für Ihre Wissensdatenbank abgefragt werden soll.

options
QnAMakerOptions

Die Optionen für die QnA Maker-Wissensdatenbank. Wenn null, wird die Konstruktoroption für diese Instanz verwendet.

telemetryProperties
Dictionary<String,String>

Zusätzliche Eigenschaften, die mit dem QnaMessage-Ereignis in Telemetriedaten protokolliert werden sollen.

telemetryMetrics
Dictionary<String,Double>

Zusätzliche Metriken, die mit dem QnaMessage-Ereignis in Telemetriedaten protokolliert werden sollen.

Gibt zurück

Eine Liste der Antworten für die Benutzerabfrage, sortiert in abnehmender Reihenfolge der Rangfolge.

Implementiert

Gilt für:

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Generiert eine Antwort aus dem Wissensdatenbank.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResult[]> GetAnswersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default);
member this.GetAnswersAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResult[]>
Public Function GetAnswersAsync (turnContext As ITurnContext, Optional options As QnAMakerOptions = Nothing) As Task(Of QueryResult())

Parameter

turnContext
ITurnContext

Der Turn Context, der die Benutzerfrage enthält, die für Ihre Wissensdatenbank abgefragt werden soll.

options
QnAMakerOptions

Die Optionen für die QnA Maker-Wissensdatenbank. Wenn null, wird die Konstruktoroption für diese Instanz verwendet.

Gibt zurück

Eine Liste der Antworten für die Benutzerabfrage, sortiert in abnehmender Reihenfolge der Rangfolge.

Gilt für: