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, that worked. I hadn’t caught it before. I had to override the init_tracker() function on my custom tracker store object like below. The default store does not limit the size of trackers.
class CustomTrackerStore(rasa_core.tracker_store.TrackerStore):
...
def init_tracker(self, sender_id):
if self.domain:
return DialogueStateTracker(sender_id,
self.domain.slots,
max_event_history = 100)
else:
return None
now i want to fetch some data like db.sender_id or db.event. the reason of doing it is to store it column wise on my mongodb.Please help me solving this problem.
Hey @ajaxwini. This information should already be stored in your mongodb, so there should be no extra need for you to do so. Please see the documentation about Tracker Stores and make sure your endpoints.yml includes the correct information. For information on how to fetch specific details from your mongodb maybe have a look at the mongodb docs db.collection.find() — MongoDB Manual.