Sdílet prostřednictvím


QnAMaker.GetAnswersRawAsync Metoda

Definice

Vygeneruje odpověď z znalostní báze.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.AI.QnA.QueryResults> GetAnswersRawAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default);
abstract member GetAnswersRawAsync : 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.QueryResults>
override this.GetAnswersRawAsync : 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.QueryResults>
Public Function GetAnswersRawAsync (turnContext As ITurnContext, options As QnAMakerOptions, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing) As Task(Of QueryResults)

Parametry

turnContext
ITurnContext

Kontext otočení obsahující otázku uživatele, která se má dotazovat na vaši znalostní báze.

options
QnAMakerOptions

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

telemetryProperties
Dictionary<String,String>

Další vlastnosti, které se mají protokolovat do telemetrie pomocí události 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 řazení.

Implementuje

Platí pro