Defining retrieval intents – the questions users want to ask
First, we need to define the question and its corresponding intent. Note that the intent name for the training data of ResponseSelector
is different from the ordinary intent names that we have discussed in Chapter 2, Natural Language Understanding in Rasa. ResponseSelector
needs to follow the <group>/<intent>
format in order to name the intents. This also explains why even ordinary intents should not have /
as part of their name.
Here is an example:
nlu: - intent: chitchat/ask_name examples: | - What is your name? - Who are you? - How can I call you? - intent: chitchat/ask_weather examples: | - What's the weather like on your side? - It's sunny and clear here on my side, what...