Skip to content
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

Two-stage fallback resets all slots on successful rephrase #7176

Closed
Devocado opened this issue Nov 4, 2020 · 3 comments
Closed

Two-stage fallback resets all slots on successful rephrase #7176

Devocado opened this issue Nov 4, 2020 · 3 comments
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Devocado
Copy link

Devocado commented Nov 4, 2020

Rasa version: 2.0.x

Python version: 3.8.2

Operating system : Ubuntu 20.04

Issue: Two-stage fallback resets all slots on successful rephrase

Error (including full traceback):
All slots are reset when successfully rephrasing a message after triggering a two-stage fallback

The full debug output can be found here

Command or request that led to error:
This bug can be reproduced with this example assistant

Steps to reproduce:

  • Start the assistant
  • Enter 'Hi' or 'hello' to start a conversation
  • Provide the information requested, a name, a number for age, and a colour
  • When the assistant asks 'what can I do for you?' enter
/nlu_fallback

to trigger an nlu fallback (just for the sake of simplicity; with so few intents it is tricky to trigger it with an ordinary message)

  • The assistant will ask "did you mean 'nlu_fallback'?". Select 'No'
  • The assistant will ask you to rephrase your message. This time enter something along the lines of "tell me a joke" to trigger the tell_joke intent

The assistant will answer, using the name slot. However the slot will be empty, and will output 'None' where the name should be.

Running in debug mode will reveal that all of the slots are empty at this point

@Devocado Devocado added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Nov 4, 2020
@sara-tagger
Copy link
Collaborator

Thanks for the issue, @tabergma will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@Ghostvv
Copy link
Contributor

Ghostvv commented Nov 4, 2020

thank you for detailed report and for creating a repo with small example 🚀
We'll take a look at what is going on

@Ghostvv
Copy link
Contributor

Ghostvv commented Nov 4, 2020

there is a bug.
action_two_stage_fallback reverts 2 UserUttered, however the last tell me a joke is part of the form, so instead of reverting tell me a joke and nlu_fallback, it reverts nlu_fallback and hi (the only 2 “real” user uttered in applied events). Since action_two_stage_fallback is a loop, it always should revert 1 user uttered (the one that triggered it)

@wochinge wochinge self-assigned this Nov 4, 2020
@wochinge wochinge mentioned this issue Nov 10, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants