Fallback policy is not working ,can someone elaborate more on nlu_threshold and nlu_core for the confidence intervals
nlu_threshold: threshold for the confidence score of the nlu intent classification, if below the nlu fallback action is triggered
core_threshold: threshold for the policy action prediction, if below the core fallback action is triggered
do we have to create policies file for fallback or we can put it in the config file ? what do we write in the intent for fallback
You have to put something like this
- name: TwoStageFallbackPolicy (or FallbackPolicy, if you wish) nlu_threshold: 0.4 core_threshold: 0.4 fallback_core_action_name: “action_default_fallback” fallback_nlu_action_name: “action_default_ask_affirmation” deny_suggestion_intent_name: “out_of_scope”
in the config file. Not sure, what you mean by ‘intent for fallback’. Do you mean ‘deny_suggestion_intent_name’, which will become the intent if you deny the bot suggestions for the highest rank intent (which is ofc below the threshold).
You probably want to write your own custom fallback actions.
how to import form policy ? example from rasa_core.policies.memoization import MemoizationPolicy,FormPolicy this code is giving error ,please suggest the correct one .any referance code is fine
Do you want to customize the Policies?
we are trying to implement a form in our bot , error is coming something like this
“you have defined a form action ,but haven’t included in policy ensemble”
please help us out
Did you ever read the docs?
Dear @IgNoRaNt23 we have read the docs for more than a month and no where it is mentioned ,or else we wouldnt have raised this !!! and by the way the docs are not that helpful .
Everything you asked so far is answered explicitly in the docs, so I have my doubts.
The answer to your current question is here
Thank you. But this still doesn’t help, we know how to google and reach the policies page.
Nowhere it is mentioned regarding the import statement for Form Policy.
Can you paste the import statement of the Form Policy in the next reply? That would be of great help.
You can update the docs with this for form policy import statement in the policy docs - from rasa_core.policies import Policy, FormPolicy
agent = Agent(’./models/dialogue/domain.yml’,policies=[MemoizationPolicy(), KerasPolicy(),FallbackPolicy(),FormPolicy()])
All the best!!! Live and Learn (how to talk to people)
The message you posted says, that there’s no FormPolicy in the policy ensemble. You have to add
- name: FormPolicy
to your config file exactly the same way you’ve added the FallbackPolicy.
thanks dear ,our problem is solved. google works.