-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rasa data validate causes error with "action_two_stage_fallback" #10430
Comments
Exalate commented: pythenry commented: Hi @nyejon sincere apologies for the delayed response here. Can you post your domain file too please? |
Exalate commented: Freemanlabs commented: Also experiencing the same problem here |
Exalate commented: AnthonyMirandaGil commented: I also had the same problem, is there a solution? |
Exalate commented: AnthonyMirandaGil commented: I have the same problem, when I add action_two_stage fallback in the rule.yml file and run the command
I'm using the examples generated with domain.ymlversion: "3.0" intents:
responses:
utter_cheer_up:
utter_did_that_help:
utter_happy:
utter_goodbye:
utter_iamabot:
utter_default:
utter_ask_rephrase:
session_config: rule.ymversion: "3.0"
config.ymlrecipe: default.v1 language: en pipeline:
policies:
I am using version 3.0.5 of Rasa Open Source version |
Exalate commented: pythenry commented: Hi @AnthonyMirandaGil thank you for that example, apologies for the delay in response. I'll test this with your files and see if I can replicate it going forward. |
Exalate commented: nyejon commented: I also seem to get an error when the two stage fallback is actually run: in _get_active_loop_ignored_intents |
I am running into the same error as described by nyejon when I reach the TwoStageFallbackAction and the user clickes one of the buttons. In my case the default settings for the TwoStageFallback were used as described here. Rasa Version : 3.0.4 |
@pythenry I did not manage to find the part where the two stage fallback is registered as a form internally, but apparently it is not added to the mapping-dictionary that is checked in the previously mentioned method. What fixed it for me was to (locally) expand the check in this line to the following:
I guess the better way to fix this would be to add the entry to the checked dictionary with an empty list or whatever the desired behavior was meant to be. |
Hi all, @akelad @wochinge maybe you have an idea, why
I tried it with both, Rasa Version We are very close to the documented example: #rules.yml
- rule: Implementation of the Two-Stage-Fallback
steps:
- intent: nlu_fallback
- action: action_two_stage_fallback
- active_loop: action_two_stage_fallback
---
#config.yml
pipeline:
...
- name: FallbackClassifier
threshold: 0.7
ambiguity_threshold: 0.1
policies:
- name: RulePolicy
core_fallback_threshold: 0.4
core_fallback_action_name: action_default_fallback
enable_fallback_prediction: true |
Running into the same issue. The two stage fallback also causes this error in normal rasa operation when using My version details:
|
same problem for precisely same versions as pixpack report above while migrating a working bot from rasa 2.8.x - is there no resolution to this given the prevalence of the problem? Appears fallback implementation changed? |
Fix released in version |
still seeing KeyError: 'action_two_stage_fallback' when the user clicks one of the buttons. I'm also using the default settings for the TwoStageFallback were used as described here. Rasa Version : 3.2.0 |
@cqx931 That seems to be a different issue to the one described in the original issue. Please submit a separate bug report with more details please. Also note this bugfix was released in version |
the bug has not been resolved in version 3.2.1 or 3.2.4, it seems to be a problem with the SLOTS, because when SLOTS are defined it is when the problem related to KeyError: 'action_two_stage_fallback' occurs |
@borisjota The bugfix released in version |
Is there also an opened issue we could link here? |
Rasa Open Source version
3.0.0
Rasa SDK version
No response
Rasa X version
No response
Python version
3.8
What operating system are you using?
OSX
What happened?
When using the two-stage fallback, I get the following error when running
rasa data validate
UserWarning: The form 'action_two_stage_fallback' is used in the 'Activate two stage fallback' block, but it is not listed in the domain file. You should add it to your domain file!
I have this in my rules:
version: "3.0" rules:
Command / Request
Relevant log output
No response
The text was updated successfully, but these errors were encountered: