I am newbie to Rasa, I am trying to develop a chatbot which translates text when prompted.
Example:
Bot–> What can I translate for you today?
User–> translate good in spanish
Bot–> Translated sentence: buen
I am unable to get a response from the bot, it is only taking input when I type.
Please run rasa shell --debug to get more info on what is happening.
I suggest using rasa interactive as well to let your bot add data (intents, entities, stories) in case you missed any. This looks to me like you just may not have written a story.
(rasa_new) D:>rasa --version
Rasa Version : 3.0.5
Minimum Compatible Version: 3.0.0
Rasa SDK Version : 3.0.3
Rasa X Version : None
Python Version : 3.8.9
Operating System : Windows-10-10.0.19041-SP0
Python Path : d:\rasa_new\scripts\python.exe
Yes my action server is running in 2nd terminal
I have run rasa shell --debug and rasa run actions --debug , I have attached files,.
Please let me know if I am missing something.
rules.yml (343 Bytes)
stories.yml (782 Bytes)
rasa run actions --debug.txt (1.2 KB)
rasa shell --debug.txt (10.9 KB)
Hi @ChrisRahme, thanks for your suggestion
I have written a story, refer to the file attached.
I also run rasa shell --debug and got this output for my input to the bot. I have attached the output also.
and Do I need to explicitly install rasa interactive? using pip install? or it gets automatically installed with pip install rasa, because I ran the command rasa --version and for Rasa X it is showing none as version.
Please let me know if I am missing something.
rasa shell --debug.txt (10.9 KB)
(rasa_new) D:>rasa --version
Rasa Version : 3.0.5
Minimum Compatible Version: 3.0.0
Rasa SDK Version : 3.0.3
Rasa X Version : None
Python Version : 3.8.9
Operating System : Windows-10-10.0.19041-SP0 Python Path : d:\rasa_new\scripts\python.exe
This story will only happen after the user greeted then asked for translation with sentence entity being exactly good morning and to_lang entity being exactly spanish.
Furthermore, stories as not as powerful as rules. Best practice would be creating a rule as a direct intent-to-action link first and foremost, like so
Still I am not getting any response from the bot.
Also I had re-run rasa shell --debug using the rule you suggested, and tried to re-create the story again. Attaching the debug logs.
rasa shell --debug_01.txt (27.1 KB)
I am seeing this line in the debug
2022-01-25 15:15:01 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action 'action_listen'.
is this the root cause for this issue? if so then how can I resolve it?
And could you please suggest a more generalized story for this translator bot.
Thanks
Yashi
policies:
# # No configuration for policies was provided. The following default policies were used to train your model.
# # If you'd like to customize them, uncomment and adjust the policies.
# # See https://rasa.com/docs/rasa/policies for more information.
- name: MemoizationPolicy
- name: RulePolicy
- name: UnexpecTEDIntentPolicy
max_history: 5
epochs: 100
- name: TEDPolicy
max_history: 5
epochs: 100
constrain_similarities: true
This is default pipeline of Rasa 3.X
Observation: You are using custom pipeline ? You are using RegexEntityExtractor Any specific reason? Just trying to understand your use-case. Or If you can share the link from where you get this idea? Thanks.
@yashi yashi, as per the code you have written it has translator mention (that’s why I asked), and how custom action know how to translate or you can use Google Translator API for the same. I guess it not giving you the result.