gpt4 book ai didi

Alexa 技能未发送正确的 intent

转载 作者:行者123 更新时间:2023-12-01 23:40:20 24 4
gpt4 key购买 nike

我正在编写的 Alexa 技能有以下设置:

intent 架构

{
"intents": [
{
"intent": "AddToGroceriesIntent",
"slots": [
{
"name": "GroceriesItems",
"type": "GROCERIES_ITEMS"
}
]
},
{
"intent": "GetGroceriesIntent"
},
{
"intent": "ClearGroceriesIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}

示例话语

AddToGroceriesIntent to add {GroceriesItems}
AddToGroceriesIntent to add {GroceriesItems} to shopping list
AddToGroceriesIntent to add {GroceriesItems} to the shopping list
AddToGroceriesIntent to add {GroceriesItems} to the list
GetGroceriesIntent list
GetGroceriesIntent shopping list
GetGroceriesIntent for the shopping list
GetGroceriesIntent for the list
GetGroceriesIntent what's on my shopping list
GetGroceriesIntent what's on the shopping list
GetGroceriesIntent what's on the list
GetGroceriesIntent what's on my list
GetGroceriesIntent what is on my shopping list
GetGroceriesIntent what is on the shopping list
GetGroceriesIntent what is on the list
GetGroceriesIntent what is on my list
ClearGroceriesIntent to clear my shopping list
ClearGroceriesIntent to clear my list
ClearGroceriesIntent to clear the shopping list
ClearGroceriesIntent to clear the list
ClearGroceriesIntent to empty my shopping list
ClearGroceriesIntent to empty my list
ClearGroceriesIntent to empty the shopping list
ClearGroceriesIntent to empty the list
ClearGroceriesIntent to delete my shopping list
ClearGroceriesIntent to delete my list
ClearGroceriesIntent to delete the shopping list
ClearGroceriesIntent to delete the list

当 Alexa 听到:

alexa ask my app to clear my shopping list

正如预期的那样,发送了正确的 ClearGroceriesIntent。然而,当 Alexa 听到:

alexa ask my app to clear the shopping list

改为发送 GetGroceriesIntent

此问题无法通过服务模拟器复制 - 它工作正常。只有在语音期间它才会变得困惑,尽管(根据历史记录)Alexa 听到的内容与我在测试表格中输入的内容完全相同。

(所有 AddToGroceriesIntent 和 GetGroceriesIntent 话语都按预期工作)

最佳答案

一个可能有帮助的建议是更改您的示例话语以删除连接词 - 在您的情况下,“to”和“for”不应出现在示例话语中,引用 these docs在“使用特定请求( intent )调用技能”下。我不确定这是否会解决问题,但无论如何都很好。如果问题仍然存在,您可能遇到映射到 this discussion 的情况。关于 NLP 如何始终返回您的一个 intent ——即使它不理解,它也只是选择一个。也许它在不理解时会例行地选择 GetGroceriesIntent。

关于Alexa 技能未发送正确的 intent ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42964552/

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