IQnAMakerClient.GetAnswersRawAsync 方法

定义

从知识库生成答案。

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

参数

turnContext
ITurnContext

包含要针对知识库查询的用户问题的轮次上下文。

options
QnAMakerOptions

QnA Maker 知识库的选项。 如果为 null,则此实例使用构造函数选项。

telemetryProperties
Dictionary<String,String>

使用 QnaMessage 事件记录到遥测的其他属性。

telemetryMetrics
Dictionary<String,Double>

使用 QnaMessage 事件记录到遥测的其他指标。

返回

用户查询的答案列表,按排名分数的降序排序。

适用于