Język

CustomQuestionAnswering Klasa

Definicja

Zapewnia dostęp do niestandardowej bazy wiedzy do odpowiadania 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

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

Inicjuje nowe wystąpienie klasy CustomQuestionAnswering.

CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Inicjuje nowe wystąpienie klasy CustomQuestionAnswering.

Właściwości

Nazwa Opis
DefaultHttpClient

Jest używany podczas HttpClient wywoływania Custom Question Answering API.

LogPersonalInformation

Otrzymuje wartość wskazującą, czy należy logować dane osobowe pochodzące od użytkownika.

TelemetryClient

Otrzymuje aktualnie skonfigurowany IBotTelemetryClient element, który rejestruje zdarzenie QnaMessage.

Metody

Nazwa Opis
CallTrainAsync(FeedbackRecords)

Prześlij opinie do bazy wiedzy.

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

Generuje odpowiedź na podstawie bazy wiedzy.

GetAnswersAsync(ITurnContext, QnAMakerOptions)

Generuje odpowiedź na podstawie bazy wiedzy.

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

Generuje odpowiedź na podstawie bazy wiedzy.

GetLowScoreVariation(QueryResult[])

Filtruje niejednoznaczne pytanie dotyczące aktywnego uczenia.

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

Wykonywane po zwróceniu wyniku z Niestandardowego Odpowiadania na Pytania.

Dotyczy