CustomQuestionAnswering Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Dá acesso a uma Base de Conhecimento Personalizada para Respostas a Perguntas.
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
- Herança
-
CustomQuestionAnswering
- Implementações
Construtores
| Name | Descrição |
|---|---|
| CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean) |
Inicializa uma nova instância da CustomQuestionAnswering classe. |
| CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient) |
Inicializa uma nova instância da CustomQuestionAnswering classe. |
Propriedades
| Name | Descrição |
|---|---|
| DefaultHttpClient |
Obtém a HttpClient utilização ao ligar à API de Resposta a Perguntas Personalizadas. |
| LogPersonalInformation |
Recebe um valor que indica se deve registar informações pessoais que vieram do utilizador. |
| TelemetryClient |
Obtém a configuração IBotTelemetryClient atual que regista o evento QnaMessage. |
Métodos
| Name | Descrição |
|---|---|
| CallTrainAsync(FeedbackRecords) |
Envie feedback para a base de conhecimento. |
| GetAnswersAsync(ITurnContext, QnAMakerOptions, Dictionary<String,String>, Dictionary<String,Double>) |
Gera uma resposta a partir da base de conhecimento. |
| GetAnswersAsync(ITurnContext, QnAMakerOptions) |
Gera uma resposta a partir da base de conhecimento. |
| GetAnswersRawAsync(ITurnContext, QnAMakerOptions, Dictionary<String,String>, Dictionary<String,Double>) |
Gera uma resposta a partir da base de conhecimento. |
| GetLowScoreVariation(QueryResult[]) |
Filtra a pergunta ambígua para a aprendizagem ativa. |
| OnQnaResultsAsync(QueryResult[], ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken) |
Executado quando um resultado é devolvido do Custom Question Answering. |