你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
QuestionAnsweringModelFactory.KnowledgeBaseAnswerDialog 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 KnowledgeBaseAnswerDialog 的新实例。
public static Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerDialog KnowledgeBaseAnswerDialog (bool? isContextOnly = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerPrompt> prompts = default);
static member KnowledgeBaseAnswerDialog : Nullable<bool> * seq<Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerPrompt> -> Azure.AI.Language.QuestionAnswering.KnowledgeBaseAnswerDialog
Public Shared Function KnowledgeBaseAnswerDialog (Optional isContextOnly As Nullable(Of Boolean) = Nothing, Optional prompts As IEnumerable(Of KnowledgeBaseAnswerPrompt) = Nothing) As KnowledgeBaseAnswerDialog
参数
标记提示是否仅与上一个问题相关。 如果为 true,则不要将此 QnA 作为无上下文查询的搜索结果包括在内;否则,如果为 false,则忽略上下文并在搜索结果中包含此 QnA。
- prompts
- IEnumerable<KnowledgeBaseAnswerPrompt>
与答案关联的提示列表。
返回
用于模拟的新 KnowledgeBaseAnswerDialog 实例。