Jaa


QnAMakerRecognizer Class

Definition

IRecognizer implementation which uses QnAMaker KB to identify intents.

public class QnAMakerRecognizer : Microsoft.Bot.Builder.Dialogs.Recognizer
type QnAMakerRecognizer = class
    inherit Recognizer
Public Class QnAMakerRecognizer
Inherits Recognizer
Inheritance
QnAMakerRecognizer

Constructors

QnAMakerRecognizer()

Initializes a new instance of the QnAMakerRecognizer class.

Fields

ChooseIntent

Intent name that will be produced by this recognizer if the child recognizers do not have consensus for intents.

(Inherited from Recognizer)
Kind

The declarative type for this recognizer.

NoneIntent

Standard none intent that means none of the recognizers recognize the intent.

(Inherited from Recognizer)
QnAMatchIntent

Key used when adding the intent to the RecognizerResult intents collection.

Properties

Context

Gets or sets an expression to evaluate to set the context.

EndpointKey

Gets or sets the Endpoint key for the QnA Maker KB.

HostName

Gets or sets the Hostname for your QnA Maker service.

HttpClient

Gets or sets the HttpClient to be used when calling the QnA Maker API.

Id

Gets or sets id of the recognizer.

(Inherited from Recognizer)
IncludeDialogNameInMetadata

Gets or sets the whether to include the dialog name metadata for QnA context.

IsTest

Gets or sets a value indicating whether gets or sets environment of knowledgebase to be called.

KnowledgeBaseId

Gets or sets the KnowledgeBase Id of your QnA Maker KnowledgeBase.

LogPersonalInformation

Gets or sets the flag to determine if personal information should be logged in telemetry.

Metadata

Gets or sets an expression to evaluate to set additional metadata name value pairs.

QnAId

Gets or sets an expression or numberto use for the QnAId paratmer.

RankerType

Gets or sets ranker Type.

StrictFiltersJoinOperator

Gets or sets Metadata join operator.

TelemetryClient

Gets or sets the currently configured IBotTelemetryClient that logs the RecognizerResult event.

(Inherited from Recognizer)
Threshold

Gets or sets the threshold score to filter results.

Top

Gets or sets the number of results you want.

Methods

FillRecognizerResultTelemetryProperties(RecognizerResult, Dictionary<String,String>, DialogContext)

Uses the RecognizerResult to create a list of properties to be included when tracking the result in telemetry.

GetQnAMakerClientAsync(DialogContext)

Gets an instance of IQnAMakerClient.

RecognizeAsync(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Return results of the call to QnA Maker.

RecognizeAsync<T>(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a strongly-typed recognizer result using IRecognizerConvert.

(Inherited from Recognizer)
TrackRecognizerResult(DialogContext, String, Dictionary<String,String>, Dictionary<String,Double>)

Tracks an event with the event name provided using the TelemetryClient attaching the properties / metrics.

(Inherited from Recognizer)

Applies to