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.

Rule policies will not fire if unrelated featurized slots are set

See original GitHub issue

Product feedback submission from @rgstephens

Who is the feedback from?

Multiple customers

What is the feedback?

Rule policies will not fire if unrelated featurized slots are set. This behavior is counterintuitive and not documented.

What problem are they trying to solve?

A simple rule like this should work if a featurized slot is set:

- rule: greet
 steps:
 - intent: greet
 - action: utter_greet

Repo with more details

Slack thread

Recommendation

  • Assign two researcher to this issue

Possible Inelegant Workaround

  • Add a rule for every possible slot state

Possible Solutions

  • Make the state of slot featurization explicit in the rules (e.g. none or any)

Definition of Done In order of urgency:

  • See whether suggested workaround will resolve immediate customer problem
  • Understand customer context: who does this affect?
  • Identify consequences: what would change if this suggested behavior change were implemented?
  • Identify possible alternative next steps to be refined and scoped later, likely to include more explicit definition of rule behavior

Instead of the above steps, @samsucik carried out an investigation to pin-point the bug and, while doing so, proposed a simple fix (implemented in #9475), which has been verified to fix the issue on all examples provided by @rgstephens. The discussion inspired related improvements to our docs and another bug report.

@samsucik to coordinate who is doing what on this issue @kedz assigned reviewer

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
provwilliamnagycommented, Aug 25, 2021

I’m one of the customers experiencing the issue and I think the core issue (or at least the part that’s causing me problems) is actually caused by the fact that the featurized categorical slot has an allowable value of none (in my case, the allowed values are none, single, multiple). I thought those were being treated as strings but perhaps something in the Python code is confusing it and treating it as None even though it was specified in the YAML. If I rename that value in the category to something like nada, it doesn’t appear in the compiled rules…

1reaction
samsucikcommented, Aug 31, 2021

Fyi the bug report for the initial_value issue now lives here: #9483 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rule policies will not fire if unrelated featurized slots are set
What is the feedback? Rule policies will not fire if unrelated featurized slots are set. This behavior is counterintuitive and not documented.
Read more >
Establishing Basis for Gambling Losses
To prove gambling losses and taxable income, taxpayers are subject to rules of proof, recordkeeping, estimating and credibility.
Read more >
Writing Conversation Data
All slots which influence the conversation need to be added to your stories or rules. For example, you can use a boolean slot...
Read more >
Developer Program Policy - Play Console Help
A privacy policy that comprehensively discloses the access, collection, use and sharing of personal and sensitive user data. We do not allow apps...
Read more >
Signals & Slots | Qt Core 6.4.1
Just as an object does not know if anything receives its signals, a slot ... Since slots are normal member functions, they follow...
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