question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`rasa interactive` stuck in infinite loop in Rasa 3.0rc1

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ancalitacommented, Nov 16, 2021

@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 πŸ˜„

0reactions
ka-bucommented, Nov 17, 2021

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 😬

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found