CustomQuestionAnswering Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |