Share via


CustomQuestionAnswering Class

Definition

Provides access to a Custom Question Answering Knowledge Base.

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
Inheritance
CustomQuestionAnswering
Implements

Constructors

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

Initializes a new instance of the CustomQuestionAnswering class.

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Initializes a new instance of the CustomQuestionAnswering class.

Properties

DefaultHttpClient

Gets the HttpClient to be used when calling the Custom Question Answering API.

LogPersonalInformation

Gets a value indicating whether to log personal information that came from the user.

TelemetryClient

Gets the currently configured IBotTelemetryClient that logs the QnaMessage event.

Methods

CallTrainAsync(FeedbackRecords)

Send feedback to the knowledge base.

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

Generates an answer from the knowledge base.

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Generates an answer from the knowledge base.

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

Generates an answer from the knowledge base.

GetLowScoreVariation(QueryResult[])

Filters the ambiguous question for active learning.

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

Executed when a result is returned from Custom Question Answering.

Applies to