Azure QnA Maker Managed(预览版)- 仅在收到来自机器人的响应时显示长答案

Azure QnA Maker Managed (preview) - only display Long Answer when receiving a response from bot

来自 Azure QnA Maker 文档:

QnA Maker managed(预览版)中引入的精确回答功能,允许您从知识库中存在的最佳候选答案段落中为任何用户查询获取精确的简短答案。此功能使用深度学习模型,该模型在运行时理解用户查询的意图,并在答案段落中存在作为事实的简短答案时从答案段落中检测精确的简短答案。 此功能在测试窗格中默认处于启用状态,因此您可以测试特定于您的场景的功能。

在 QnA Maker 门户中(qnamaker.ai), when you open the test-pane, you will see an option to Display short answer on the top. This option will be selected by-default. When you enter a query in the test pane, you will see a short-answer along with the answer passage, if there is a short answer present in the answer passage (see this image 上下文)。

现在,我想要做的是禁止显示来自实际聊天机器人本身的简短答案(以便只显示长答案),而不仅仅是在 qnamaker.ai 的测试窗格中。

qnamaker.ai 的知识库创建中,我创建了一个 QnA 对,“你好”作为问题,“你好 123”作为答案。保存和训练知识库并发布它,推动知识库更改,端点可用于我的 Bot。

通过我的 QnA Web 应用程序机器人中的网络聊天功能测试来自 Azure 门户的这个新 QnA 对显示一些奇怪的行为:向机器人提供短语“Hello”returns 一个简短的回答“123”和一个长答案“你好 123”,这个长答案似乎以某种奇怪的方式格式化。 .向机器人提供短语“123”returns 仅提供完整答案“Hello 123”(参见 here)。

同时显示简短答案和长答案可能会给用户造成干扰和混淆。这似乎发生在我测试过的几乎所有 QnA 对上。是否有某种配置设置可以禁用此行为?

设法在 microsoft techcommunity question 上的一个问题上找到了此问题的解决方案。这是解决它的回复:

If you navigate to the bot's app service in Azure portal, go to the configuration settings and add the key value pair EnablePreciseAnswer:false then this will remove the precise answer or short answer from the response. You will need to save the change and restart the app service for the change to take effect.