共用方式為


CustomQuestionAnswering 類別

定義

提供自訂問題解答知識庫的存取權。

public class CustomQuestionAnswering : Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient, Microsoft.Bot.Builder.AI.QnA.ITelemetryQnAMaker
type CustomQuestionAnswering = class
    interface IQnAMakerClient
    interface ITelemetryQnAMaker
Public Class CustomQuestionAnswering
Implements IQnAMakerClient, ITelemetryQnAMaker
繼承
CustomQuestionAnswering
實作

建構函式

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

初始化 CustomQuestionAnswering 類別的新執行個體。

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

初始化 CustomQuestionAnswering 類別的新執行個體。

屬性

DefaultHttpClient

取得呼叫 HttpClient 自訂問題解答 API 時要使用的 。

LogPersonalInformation

取得值,指出是否要記錄來自使用者的個人資訊。

TelemetryClient

取得目前設定 IBotTelemetryClient 的 ,記錄 QnaMessage 事件。

方法

CallTrainAsync(FeedbackRecords)

將意見反應傳送至知識庫。

GetAnswersAsync(ITurnContext, QnAMakerOptions)

從知識庫產生答案。

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

從知識庫產生答案。

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

從知識庫產生答案。

GetLowScoreVariation(QueryResult[])

篩選使用中學習的模棱兩可問題。

OnQnaResultsAsync(QueryResult[], ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

從自訂問題解答傳回結果時執行。

適用於