Sdílet prostřednictvím


QnAMaker.GetAnswersAsync Metoda

Definice

Přetížení

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

Vygeneruje odpověď z znalostní báze.

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Vygeneruje odpověď z znalostní báze.

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

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

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

GetAnswersAsync(ITurnContext, QnAMakerOptions)

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 = 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())

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.

Návraty

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

Platí pro