Rasa InMemoryTrackerStore gets too big for long conversations

Hi,

I’m wondering how do you deal with long conversations in Rasa, that take more than 1 hour?

I notice that InMemoryTrackerStore is storing all the events in the memory which slows down the performance very quickly. Setting max_history for AugmentedMemoizationPolicy and TEDPolicy doesn’t change much, since regardless of that all the conversation history is being stored in InMemoryTrackerStore anyway.

Did someone find a way to refresh InMemoryTrackerStore every now and then to keep the conversation history stored in memory shorter?

It’s not intended to be used in production environments. You should consider using Postgres, MongoDB or DynamoDB for the tracker.

1 Like