Allie the Icon 分享 Jev 多意图处理技巧
@allietheicon dropping hard-learned wisdom 🙇
Allie the Icon 提出用“购物车”模式处理单次用户查询中的多个意图:递归选取下一项,直到 Jev 判定完成。她称已用该方法为公司 Slack 搭建咖啡下单机器人(借助 DoorDash 的 CLI),并用于智能家居的快速多意图处理。Diogo Almeida 转发并称赞这是“来之不易的经验”。
查看原帖有一件事可能不太好弄明白,那就是如何用 Jev 的原语来处理单个用户查询中的多个意图。 我最喜欢的处理方式是我称之为“购物车”的模式:递归地挑选下一项,直到 Jev 说我们已经完成了。 我个人曾用这种方法为我们公司的 Slack 做了一个咖啡下单机器人(用的是 @DoorDash 的 CLI!),还用它为我的智能家居系统做了一个快速的多意图处理器。 不妨试一试!
查看原文
One thing that can be tricky to figure out is how to use Jev's primitives to handle more than one intent in a single user query. My favorite way to approach this is what I call the "shopping cart" pattern: recursively pick the next thing until Jev says we're done. I've personally used this to make a coffee ordering bot for our company Slack (using @DoorDash's CLI!), as well as a fast multi-intent handler for my smart home system. Give it a shot!
正文
@allietheicon dropping hard-learned wisdom 🙇