QuestionAnsweringModelFactory.KnowledgeBaseAnswer Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância do KnowledgeBaseAnswer.
public static Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswer KnowledgeBaseAnswer (System.Collections.Generic.IEnumerable<string> questions = default, string answer = default, double? confidence = default, int? qnaId = default, string source = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default, Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerDialog dialog = default, Azure.AI.Language.QuestionAnswering.AnswerSpan shortAnswer = default);
static member KnowledgeBaseAnswer : seq<string> * string * Nullable<double> * Nullable<int> * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerDialog * Azure.AI.Language.QuestionAnswering.AnswerSpan -> Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswer
Public Shared Function KnowledgeBaseAnswer (Optional questions As IEnumerable(Of String) = Nothing, Optional answer As String = Nothing, Optional confidence As Nullable(Of Double) = Nothing, Optional qnaId As Nullable(Of Integer) = Nothing, Optional source As String = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing, Optional dialog As KnowledgeBaseAnswerDialog = Nothing, Optional shortAnswer As AnswerSpan = Nothing) As KnowledgeBaseAnswer
Parâmetros
- questions
- IEnumerable<String>
Lista de perguntas associadas à resposta.
- answer
- String
Texto da resposta.
- source
- String
Origem do resultado do QnA.
- metadata
- IReadOnlyDictionary<String,String>
Metadados associados à resposta, úteis para categorizar ou filtrar respostas às perguntas.
- dialog
- KnowledgeBaseAnswerDialog
Caixa de diálogo associada à Resposta.
- shortAnswer
- AnswerSpan
Objeto de intervalo de resposta do QnA em relação à pergunta do usuário.
Retornos
Uma nova KnowledgeBaseAnswer instância para simulação.
Aplica-se a
Azure SDK for .NET