Sdílet prostřednictvím


ITelemetryQnAMaker.GetAnswersAsync Metoda

Definice

Vygeneruje odpověď z znalostní báze.

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[]>
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())

Parametry

turnContext
ITurnContext

Kontext otočení obsahující otázku uživatele, která má být dotazována na váš znalostní báze.

options
QnAMakerOptions

Možnosti služby QnA Maker znalostní báze. Pokud null, je pro tuto instanci použita možnost konstruktoru.

telemetryProperties
Dictionary<String,String>

Další vlastnosti, které se mají protokolovat do telemetrie s událostí QnaMessage.

telemetryMetrics
Dictionary<String,Double>

Další metriky, které se mají protokolovat do telemetrie pomocí události QnaMessage

Návraty

Seznam odpovědí na uživatelský dotaz seřazený v sestupném pořadí podle skóre hodnocení.

Platí pro