Compartir a través de


QuestionAnsweringModelFactory.KnowledgeBaseAnswer Método

Definición

Inicializa una nueva instancia de 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 preguntas asociadas a la respuesta.

answer
String

Texto de respuesta.

confidence
Nullable<Double>

Puntuación de confianza de respuesta, el valor oscila entre 0 y 1.

qnaId
Nullable<Int32>

Id. del resultado de QnA.

source
String

Origen del resultado de QnA.

metadata
IReadOnlyDictionary<String,String>

Metadatos asociados a la respuesta, útiles para clasificar o filtrar respuestas a preguntas.

dialog
KnowledgeBaseAnswerDialog

Cuadro de diálogo asociado a Answer.

shortAnswer
AnswerSpan

Responda al objeto span de QnA con respecto a la pregunta del usuario.

Devoluciones

KnowledgeBaseAnswer Nueva instancia de para simular.

Se aplica a