ConversationsModelFactory.KnowledgeBaseAnswer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of KnowledgeBaseAnswer.
public static Azure.AI.Language.Conversations.Models.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.Conversations.Models.KnowledgeBaseAnswerDialog dialog = default, Azure.AI.Language.Conversations.Models.AnswerSpan shortAnswer = default);
static member KnowledgeBaseAnswer : seq<string> * string * Nullable<double> * Nullable<int> * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * Azure.AI.Language.Conversations.Models.KnowledgeBaseAnswerDialog * Azure.AI.Language.Conversations.Models.AnswerSpan -> Azure.AI.Language.Conversations.Models.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
Parameters
- questions
- IEnumerable<String>
List of questions associated with the answer.
- answer
- String
Answer text.
- source
- String
Source of QnA result.
- metadata
- IReadOnlyDictionary<String,String>
Metadata associated with the answer, useful to categorize or filter question answers.
- dialog
- KnowledgeBaseAnswerDialog
Dialog associated with Answer.
- shortAnswer
- AnswerSpan
Answer span object of QnA with respect to user's question.
Returns
A new KnowledgeBaseAnswer instance for mocking.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET