Closed boryslawskamaria closed 2 years ago
The docs show that these responses should be in domain.yml
. As a workaround discussed here, if you move the FAQ responses to the nlu.yml
it will work.
Hi, thanks for your reply. I have already tried and I keep getting the same error.
UserWarning: Action 'utter_chitchat' is listed as a response action in the domain file, but there is no matching response defined. Please check your domain. More info at https://rasa.com/docs/rasa/responses
I tested this workaround and it also worked for me. You need to make sure all of the utter_chitchat/
responses are no longer in your domain.yml
.
If I move all of the utter_chitchat/ responses from domain.yml to the nlu.yml will then Rasa recognize them during model training? In all cases, I tried to do so and still keep receiving the same error message.
@redunau Moving them to the nlu has been confirmed to work by multiple people. If your project is available in a git repo please post and I will take a look.
Hi, I've created a mini version of the bot with only one retrieval intent and moved said responses to the nlu file. It looks as follow:
nly.yml:
version: "2.0"
nlu:
intent: chitchat/ask_howold examples: |
intent: chitchat/ask_languagesbot examples: |
intent: chitchat/ask_wherefrom examples: |
intent: chitchat/ask_whoami examples: |
intent: chitchat/compliments examples: |
intent: chitchat/handleinsult examples: |
intent: chitchat/telljoke examples: |
intent: chitchat/ask_whatismyname examples: |
intent: chitchat/ask_weather examples: |
intent: chitchat/ask_builder examples: |
intent: chitchat/ask_howdoing examples: |
intent: chitchat/crocodile examples: |
responses: utter_chitchat/ask_howold:
rules.yml: version: "2.0"
rules:
config.yml
language: en
pipeline:
policies:
domain.yml
version: "2.0"
intents:
session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true
I did what you mentioned, removed all the responses and moved the to the nlu.
Still keep getting the same error when training/testing:
.../.env/lib/python3.6/site-packages/rasa/shared/utils/io.py:93: UserWarning: Action 'utter_chitchat' is listed as a response action in the domain file, but there is no matching response defined. Please check your domain. More info at https://rasa.com/docs/rasa/responses
hi, one more thing: I created a repo in which I set up a mini bot that exhibits the aforementioned problem. Feel free to download it and have a look https://github.com/boryslawskamaria/chatbots/tree/main/minibot
I'm going to update the title to reflect that response selectors work in spite of the warning.
Hi. Just thought to share my recent experience as I am interested by this ongoing topic. I have also been experimenting with retrieval intents and response selector since December trying all the available version of rasa in the process. I am currently using rasa 2.2.9. What I can see is that:
rasa data validate
rasa train
rasa test nlu --nlu data/nlu.yml --cross-validation --folds 5 --successes
all works without warnings or errors as long as chitchat/responses are written in the nlu.yml file rather than in the domain.yml (as suggested by the current documentation).
I also getting the same issue, as
Action 'utter_chitchat' is listed as a response action in the domain file, but there is no matching response defined. Please check your domain.
I have added response selector in config file:
- name: ResponseSelector
retrieval_intent: chitchat
scale_loss: false
epochs: 100
Also, tried everything like to added responses for chitchat in nlu.yml. Previously in 2.1.2 version of Rasa I had created a folder as responses/responses.yml was working. But in Rasa 2.2.x it's not working since I have upgraded. Following are the versions:
I am also having this issue - moving my responses to nlu.yml didn't help.
Hey I found a solution to this. Firstly, you don't need to move responses to nlu.yml. The only thing that needs to be added, so that you don't get the warning is to add the following under responses in domain.yml.
**utter_chitchat:
And the rest of it, you can write as it is
utter_chitchat/ask_weather:
and so on.
@jbartot @boryslawskamaria @Horizon733
Hey I found a solution to this. Firstly, you don't need to move responses to nlu.yml. The only thing that needs to be added, so that you don't get the warning is to add the following under responses in domain.yml.
utter_chitchat: - text: "testing this solution"
And the rest of it, you can write as it is
utter_chitchat/ask_weather:
- text: Oh, it does look sunny right now in Berlin. image: "https://i.imgur.com/vwv7aHN.png"
- text: I am not sure of the whole week but I can see the sun is out today.
and so on.
@jbartot @boryslawskamaria @Horizon733
This doesn't look like a permanent solution it's kind of temporary. It would be better if the Rasa team fix this bug instead of making the domain realize by adding utter_chitchat or utter_faq. I hope you understand
I am using rasa after months. First time into rasa 2+
I was trying to migrate my previous bot explained by Mady mantha in "rasa for beginners" course using this blog https://blog.rasa.com/updating-to-rasa-open-source-2-0/
I am facing same issue when form asks about slots.
same error
facing same issue when create a very simple FAQ test bot.
Rasa Version : 2.5.0 Minimum Compatible Version: 2.2.0a1 Rasa SDK Version : 2.5.0 Rasa X Version : None Python Version : 3.8.8 Operating System : Windows-10-10.0.18362-SP0
same issue
Hey I found a solution to this. Firstly, you don't need to move responses to nlu.yml. The only thing that needs to be added, so that you don't get the warning is to add the following under responses in domain.yml.
utter_chitchat: - text: "testing this solution"
And the rest of it, you can write as it is
utter_chitchat/ask_weather:
* text: Oh, it does look sunny right now in Berlin. image: "https://i.imgur.com/vwv7aHN.png" * text: I am not sure of the whole week but I can see the sun is out today.
and so on.
@jbartot @boryslawskamaria @Horizon733
the warning is dissapear, but bot not responds
Bot loaded. Type a message and press enter (use '/stop' to exit): Your input -> what is your name? Your input -> Does it look sunny outside today? Your input ->
I am also having this issue - moving my responses to nlu.yml didn't help. Rasa Version : 2.7.0 Minimum Compatible Version: 2.6.0 Rasa SDK Version : 2.7.0 Rasa X Version : None Python Version : 3.8.0
same issue Rasa Version : 2.8.0 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : None Python Version : 3.7.11
same issue
Rasa Version : 2.8.14 Minimum Compatible Version: 2.8.9 Rasa SDK Version : 2.8.2 Rasa X Version : 0.42.6 Python Version : 3.8.10
Fixes have been merged to 3.0.x, main and 2.0.x branches. Will be released in the next micros.
Rasa version: 2.2.0
Rasa SDK version (if used & relevant):
Rasa X version (if used & relevant):
Python version: Python 3.6.9
Operating system (windows, osx, ...): ubuntu
Issue: I keep getting the above error even though I've included responses in my domain file.
Error (including full traceback):
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
Definition of done