gpt4 book ai didi

azure - 我应该如何在 Azure QnAMaker 模型中启用精确答案功能?

转载 作者:行者123 更新时间:2023-12-03 02:21:33 26 4
gpt4 key购买 nike

目前,我正在开发一个聊天机器人项目,该项目基于以 PDF 形式上传到 QnAMaker 服务的知识库进行回答。不过,我了解到 Azure 使用深度学习功能从通过搜索认知服务排名的长答案段落中提取简短答案。

请问如何启用此功能。

引用文档: https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-precise-answering

结果(启用跨度):

enter image description here

结果(禁用跨度):

enter image description here

最佳答案

您可以启用precise answers将文本分析资源与自定义问答功能结合使用时。必须更新answerSpanRequest 参数。

{
"question": "How long it takes to charge surface pro 4?",
"top": 3,
"answerSpanRequest": {
"enable": true,
"topAnswersWithSpan": 1
}
}

同样,用户可以通过不设置answerSpanRequest参数来选择禁用精确答案。

{
"question": "How long it takes to charge surface pro 4?",
"top": 3
}

关于azure - 我应该如何在 Azure QnAMaker 模型中启用精确答案功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68647946/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com