語言

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
實作

建構函式

名稱 Description
CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

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

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

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

屬性

名稱 Description
DefaultHttpClient

在呼叫自訂問答 API 時會使用 。HttpClient

LogPersonalInformation

會有一個值,指示是否要記錄來自使用者的個人資訊。

TelemetryClient

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

方法

名稱 Description
CallTrainAsync(FeedbackRecords)

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

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

從知識庫產生答案。

GetAnswersAsync(ITurnContext, QnAMakerOptions)

從知識庫產生答案。

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

從知識庫產生答案。

GetLowScoreVariation(QueryResult[])

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

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

當自訂問答回傳結果時執行。

適用於