QnAMaker 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 QnA Maker knowledge base.
public class QnAMaker : Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient, Microsoft.Bot.Builder.AI.QnA.ITelemetryQnAMaker
type QnAMaker = class
interface IQnAMakerClient
interface ITelemetryQnAMaker
Public Class QnAMaker
Implements IQnAMakerClient, ITelemetryQnAMaker
- Inheritance
-
QnAMaker
- Implements
Constructors
QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean) |
Initializes a new instance of the QnAMaker class. |
QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient) |
Initializes a new instance of the QnAMaker class. |
QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean) |
Obsolete.
Initializes a new instance of the QnAMaker class. |
QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient) |
Obsolete.
Initializes a new instance of the QnAMaker class. |
Fields
QnAMakerName |
The name of the QnAMaker class. |
QnAMakerTraceLabel |
The label used when logging QnA Maker trace. |
QnAMakerTraceType |
The type used when logging QnA Maker trace. |
Properties
DefaultHttpClient |
Gets the HttpClient to be used when calling the QnA Maker API. |
LogPersonalInformation |
Gets a value indicating whether determines 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. |
FillQnAEventAsync(QueryResult[], ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken) |
Fills the event properties and metrics for the QnaMessage event for telemetry. These properties are logged when the QnA GetAnswers method is called. |
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 QnA Maker. |