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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET