Udostępnij za pośrednictwem


CustomQuestionAnswering Klasa

Definicja

Zapewnia dostęp do niestandardowej bazy wiedzy odpowiedzi na pytania.

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
Dziedziczenie
CustomQuestionAnswering
Implementuje

Konstruktory

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Inicjuje nowe wystąpienie klasy CustomQuestionAnswering.

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

Inicjuje nowe wystąpienie klasy CustomQuestionAnswering.

Właściwości

DefaultHttpClient

Pobiera element HttpClient do użycia podczas wywoływania niestandardowego interfejsu API odpowiadania na pytania.

LogPersonalInformation

Pobiera wartość wskazującą, czy rejestrować dane osobowe pochodzące od użytkownika.

TelemetryClient

Pobiera aktualnie skonfigurowane IBotTelemetryClient zdarzenie QnaMessage.

Metody

CallTrainAsync(FeedbackRecords)

Wyślij opinię do baza wiedzy.

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Generuje odpowiedź na podstawie baza wiedzy.

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

Generuje odpowiedź na podstawie baza wiedzy.

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

Generuje odpowiedź na podstawie baza wiedzy.

GetLowScoreVariation(QueryResult[])

Filtruje niejednoznaczne pytanie dotyczące aktywnego uczenia.

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

Wykonane, gdy wynik jest zwracany z niestandardowego odpowiadania na pytania.

Dotyczy