`rasa interactive` stuck in infinite loop in Rasa 3.0rc1
See original GitHub issueIβm trying to teach my assistant to handle a form correctly. In particular, I have a form that has these slots:
forms:
fancy_pizza_form:
required_slots:
- vegetarian
- pizza_size
- pizza_type
slots:
pizza_size:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: pizza_size
pizza_type:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: pizza_type
vegetarian:
type: bool
influence_conversation: true
mappings:
- type: from_intent
value: true
intent: affirm
- type: from_intent
value: false
intent: deny
I donβt have stories for this form yet, so I figured Iβd add one via rasa interactive
. Iβm stuck at this step.
------
Chat History
# Bot You
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 action_listen
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2 hi there
intent: greet 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
3 utter_greet 1.00
Hey! How are you?
action_listen 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
4 i want to buy a fancy pizza
intent: buy_fancy_pizza 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5 fancy_pizza_form 1.00
active_loop{"name": "fancy_pizza_form"}
slot{"requested_slot": "vegetarian"}
Would you like to order a vegetarian pizza?
Buttons:
1: yes (/affirm)
2: no (/deny)
Type out your own
message...
action_listen 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
6 /deny
intent: deny 1.00
Current slots:
pizza_size: None, pizza_type: None, vegetarian: None, requested_slot: vegetarian, session_started_metadata: None
------
? The bot wants to run 'action_default_fallback', correct? No
------
Thereβs a fallback triggered! Thatβs no bueno. So Iβll try to correct it.
? What is the next action of the bot? (Use arrow keys)
<create new action>
0.30 action_default_fallback
0.00 ...
0.00 action_ask_pizza_type
0.00 action_ask_vegetarian
0.00 action_back
0.00 action_deactivate_loop
0.00 action_default_ask_affirmation
...
Β» 0.00 fancy_pizza_form
This brings up a prompt. So far so good.
? What is the next action of the bot? 0.00 fancy_pizza_form
Thanks! The bot will now run fancy_pizza_form.
? Should 'fancy_pizza_form' validate user input to fill the slot 'vegetarian'? (Y/n)
I hit Y
and I see β¦
Chat History
# Bot You
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 action_listen
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2 hi there
intent: greet 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
3 utter_greet 1.00
Hey! How are you?
action_listen 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
4 i want to buy a fancy pizza
intent: buy_fancy_pizza 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5 fancy_pizza_form 1.00
active_loop{"name": "fancy_pizza_form"}
slot{"requested_slot": "vegetarian"}
Would you like to order a vegetarian pizza?
Buttons:
1: yes (/affirm)
2: no (/deny)
Type out your own
message...
action_listen 1.00
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
6 /deny
intent: deny 1.00
Current slots:
pizza_size: None, pizza_type: None, vegetarian: None, requested_slot: vegetarian, session_started_metadata: None
------
? The bot wants to run 'action_default_fallback', correct? (Y/n)
Crud β¦ stuck in a loop. It feels like thereβs a bug around here.
> python -m rasa --version
Rasa Version : 3.0.0rc1
Minimum Compatible Version: 2.8.9
Rasa SDK Version : 3.0.0rc1
Rasa X Version : None
Python Version : 3.7.9
Operating System : Linux-5.11.0-7614-generic-x86_64-with-Pop-20.10-groovy
Python Path : /home/vincent/Development/how-to-rasa/venv/bin/python
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Untitled
#deportes Douchebag skit snl, Sun holidays 2014 book online? ... Computrabajo pampilla ventanilla, Definition sacre roi, Mega rasa pekanbaru, Service basedΒ ...
Read more >News Roundup | Techrights - Part 354
Developed by Endless Loop Studios, the same people who made Hyper Knights, ... by tabula rasa reinforcement learning from games of self-play.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@koaning This issue seems to be fixed by this PR #10252 by @ka-bu π Iβve just tested something similar on the PR branch and thereβs no more fallback prediction π
Just tested again (with form as above + entities + nlu examples for new inform intent and the entities + creating buy_fancy_pizza intent on the fly) and can confirm that thereβs no fallback anymore => Will be closed via #10252
However, also observed the issue from #10212, so weβre not quite there yet π¬