为什么要使用“意图优先级”不行? [英] Why does the "Intention Priority" not work?

查看:101
本文介绍了为什么要使用“意图优先级”不行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档:



这三个相关意图如下:







< h2>

所需的方案:




  • 我已经准备好了。问你的问题

  • 我不知道

  • 好的,这有点提示:三角形

  • 我不知道

  • 哦,你没希望了。三,三个角度,愚蠢的人。



现在发生以下情况:




  • 我准备好了。问你的问题

  • 我不知道

  • 好的,这有点提示:三角形

  • 我不知道

  • 好的,这有点提示:三角形






我在做什么错了?

解决方案

问题是您没有使用Intent优先级和正确的后续意图。



优先级应该很少使用-其目的是帮助系统消除可能与某些用户输入匹配的两个不同意图之间的歧义,并使之明确在这种情况下应选择两者中的哪一个。 不是的意思是说先使用此Intent,然后再使用此Intent。



类似地,跟进意图旨在指示哪些Intent是在基本Intent之后立即使用的Intent。您是说之后有两种可能立即使用的Intent,但它们都有相同的可能值(我不知道)。如果您真的想使用跟进意图,那么您将需要第二个跟进意图作为对 first 跟进意图的跟进(因为您只希望在第一个跟进意图之后考虑,而不是基本意图)。



此外,在这种情况下,您可能不想使用自定义跟进意图(除非您真的想专门针对我不知道)。在每种情况下,为实际答案定义一个自定义跟进意图,然后处理一个用户可以说的其他任何事情(从我不知道到错误答案)的后备跟进意图,可能更有意义。


Docs: https://dialogflow.com/docs/intents

My example: https://ufile.io/tds8e (for restore)

It primarily consists of a welcome intent that asks a question, and two followup intents.

The three relevant intents look like this:

Desired scenario:

  • I'm ready. Ask your questions
  • I don't know
  • Ok, this is a little hint: TRIangle
  • I don't know
  • Oh, you are hopeless. Three, three angles, stupid man.

Now the following happens:

  • I'm ready. Ask your questions
  • I don't know
  • Ok, this is a little hint: TRIangle
  • I don't know
  • Ok, this is a little hint: TRIangle

What am I doing wrong?

解决方案

The problem is that you're not using Intent priority and Followup Intents correctly.

Priority should rarely be used - its purpose is to help the system disambiguate between two different Intents that may both match certain user inputs and to make it clear which of the two should be picked in those cases. It is not meant to say "use this Intent first, and then use this Intent".

Similarly, the Followup Intents are meant to indicate which Intents are the expected ones to use immediately after the base Intent. You're saying that there are two possible Intents to use "immediately" after, but both of them have the same possible value ("I don't know"). If you really wanted to use Followup Intents, then you would want to have the second Followup Intent as a followup to the first Followup Intent (since you want it considered only after the first one, not the base Intent).

Additionally, you probably don't want to use a Custom Followup Intent in this case (unless you really want to respond specifically to "I don't know"). In each case, it might make more sense to have a Custom Followup Intent for the actual answer, and then a Fallback Followup Intent that would handle anything else the user might say (from "I don't know" to the wrong answer).

这篇关于为什么要使用“意图优先级”不行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆