gpt4 book ai didi

ibm-watson - Watson 对话,回复缺少文本

转载 作者:行者123 更新时间:2023-12-01 03:29:00 27 4
gpt4 key购买 nike

从昨天开始,对话服务有时不回复回复。它识别意图和实体,但响应中没有文本。这是我使用 CURL 时得到的结果:

{"input":{"text":"soporte"},"context":{"conversation_id":"4c700daf-6dd2-4308-be8
d-b76426278536","system":{"dialog_stack":["root"],"dialog_turn_counter":1,"dialo
g_request_counter":1}},"entities":[],"intents":[{"intent":"soporte","confidence"
:1}],"output":{"log_messages":[{"level":"warn","msg":"No dialog node matched for
the input at a root level!"},{"level":"warn","msg":"No dialog node condition ma
tched to true in the last dialog round - context.nodes_visited is empty. Falling
back to the root node in the next round."}],"text":[]}}

当我从 Web 界面测试 Conversation 时,它表明它识别了意图,但没有给出 anwser。

在我目前拥有的两种模型中,任何意图或实体都会发生这种情况。我澄清这是一种间歇性行为,有时它可以正常工作(大约 3 次中有 1 次可以正常工作)

example image

最佳答案

老实说,如果没有看到您正在调用的示例对话脚本,这很难回答。所以这个答案是通用的。

首先让我们检查您的 JSON 响应。

在响应中,我们可以看到:

"intents":[{
"intent":"soporte",
"confidence":1
}

这告诉你它找到了意图,但不是它对该意图采取了任何行动。该操作由您的对话框树定义。

主要的错误信息是这样的:
No dialog node matched for the input at a root level!

这意味着在您的顶级节点中没有找到匹配的条件。在您的情况下,您至少需要一个条件为 #soporte 的节点。来捕捉意图。

您还应该在根节点添加一个“任何其他”节点(通常是自动完成的)。这样你就可以看到它什么时候没有匹配更容易的东西。

这是一个示例树:

enter image description here

关于ibm-watson - Watson 对话,回复缺少文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39297548/

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