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.

`from_text` slots in form get filled too greedily

See original GitHub issue

While the optimal behaviour here is disputable, the observed behaviour simply differs between versions 2.8 and 3.0rc2.

Let’s have the rasa init project with a form with two slots, each filled from_text (in 2.8, the mapping would be defined in the form):


slots:
  slot_1:
    type: categorical
    mappings:
    - type: from_text
    values:
      - some
      - none
  slot_2:
    type: bool
    mappings:
    - type: from_text
forms:
  my_form:
    required_slots:
        - slot_1
        - slot_2

Let’s say that the form should start after intent:greet. So, when I say hi, the form starts. However, when that happens, both slots also get filled from that utterance and the form instantly exits! In 2.8, the form would ignore the form-initiating utterance and only fill the slot(s) after asking the user about them (utter_ask_<slot_name>).

On a similar note, what I also observe (which wasn’t in 2.8) is that already filled slots get re-filled. What I mean is: Let’s change the above situation such that the 2nd slot has a custom extractor that is a bit more picky and doesn’t fill slot_2 with hi. Then, that hi makes it into slot_1 only and the bot asks the user about slot_2. Then, when a user provides a value which now fills slot_2, that value also fills slot_1 which was already filled. In 2.8, slot_1 would’ve kept its original value when already filled.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
samsucikcommented, Nov 18, 2021

@ancalita thanks, I was offline yesterday but I agree with the chosen solution and with everything Melinda has said 🙂

1reaction
ancalitacommented, Nov 17, 2021

@melindaloubser1 yup, the migrate command adds conditions (with both active_loop and requested_slot) in the 3.0 migrated format for all mapping types (apart from from_entity and from_trigger_intent). I also agree with the documentation update / mandate (😛) on the usage of conditions. I will look at the comment you’ve added in the other issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rasa 3.0 filling slots with forms using "from_text" - no entities
I am trying to replicate filling a form with “first_name” and ... the user input for the first and last name, because the...
Read more >
Rasa 3.0 Slot mapping from text issue - Stack Overflow
Im using rasa 3.0 and I have a form with more than 5 slots,all are float type so I choose the mapping from...
Read more >
Intra-Template Entity Compatibility based Slot-Filling for ...
We show that it is possible to extract fine grained candidates of slot fillers from 37 classes yielding very good results of micro....
Read more >
Free Aussie Pokies | Zorro – Play Online Pokies – silvauniverse
Play for free slots machines slowly return to the starting position, ... But don't receive too greedy as hitting bankrupt as it will...
Read more >
Unsupervised Ontology Induction from Text - Microsoft
as guidance, but it is unable to extract non-atomic ... structured and very noisy. ... verts them into logical form (the semantic parse),....
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