My Rasa Chatbot is getting slow as the conversation history increases. Every time I get “Launch DeLorean”, it takes around three seconds for the next log message, as can be seen below:
2020-02-28 17:11:52 DEBUG rasa.core.policies.memoization - Launch DeLorean…
2020-02-28 17:11:55 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, None, None, {}, {‘intent_cumprimentar’: 1.0
I tried to change max_history in our custom Tracker Store as explained in the topics below:
Hello!
I’ve created a custom tracker store object to connect my bot to a centralized key/value store. That store has limits on the size of values and is also remote to my bot.
When do trackers get reset or pop old information off of the conversation? Is that configurable? I’d like to ensure trackers don’t exceed my store’s limits.
Also, are trackers retrieved/saved for every new user message/bot response? Since it’s remote, larger trackers could eventually impact my bot’s performance.
Thanks…
Everytime I send a message to the bot, it stucks for a long time when it prints
DEBUG rasa_core.policies.memoization - Launch DeLorean…
, maybe around a minute or more. I am already using a small max_history.
This is my policy:
policies:
name: KerasPolicy
epochs: 100
max_history: 5
name: AugmentedMemoizationPolicy
max_history: 2
name: FormPolicy
name: MappingPolicy
And my log:
2019-06-17 22:13:18 DEBUG rasa_core.processor - Action ‘utter_introduce’ ended with events ‘[]’
2019-06-1…
I also tried to decrease max_history of AugmentedMemoizationPolicy in config.yml as below:
name: AugmentedMemoizationPolicy
max_history: 10
However, these attempts didn’t improve the performance.
Rasa is taking more than 10 seconds to answer. I am using rasa 1.6.1.
I appreciate any help from the community. Thank you!
1 Like
Is someone facing this problem? How to solve it? It is so slow, it is taking too much time to answer (12 seconds)…
Vidush_05
(Vidushraj)
April 20, 2021, 5:05am
4
Hi @alessandrarequena Were you able to solve this issue? I am facing similar issue in production.