Help needed with Max_history


We are working with Rasa 1.3.7 and using supervised learning. I have attached our configuration details below.

I have one basic doubt.

For the story path i have below, what could be the max_history (3 or 5)

---------STORY PATH---------------

  • question1 OR question2
    • action_answer
    • utter_anythingelse
  • anythingelse{“anythingelse_value”: “yes”} OR affirm
    • slot{“anythingelse_value”: “yes”}
    • utter_help

--------Domain’s Template----------- utter_help:

  • text: “How can I help you ?”


- text: "Is there anything else I can help you with?"
    - title: "Yes"
      payload: '/anythingelse{"anythingelse_value":"yes"}'
    - title: "No"
      payload: '/anythingelse{"anythingelse_value":"no"}'



  • name: “WhitespaceTokenizer”
  • name: “RegexFeaturizer”
  • name: “CRFEntityExtractor”
  • name: “EntitySynonymMapper”
  • name: “CountVectorsFeaturizer”
  • name: “EmbeddingIntentClassifier”


  • name: KerasPolicy epochs: 100 max_history: 3 priority: 1 batch_size: 100 validation_split: 0.2

  • name: MappingPolicy priority: 2

  • name: MemoizationPolicy max_history: 3 priority: 3

  • name: TwoStageFallbackPolicy




Max_history is used to define how much of your past conversation needs attention. If your conversation is longer and the bot needs to remember details from different parts of the conversation, set this parameter to a higher value.

In your case, “max_history : 3” will work fine as the bot only needs to know “anythingelse_value” from previous step. You can use 3 or 5 for this case.

For more information…check this link : Memoization Policy with max history

Thanks sameera.

We do see difference in behavior with training the model with max_history as 3 and to that of 5. So, wanted to know which is the right value to set in this ideal case.

Okay but which value is working better, giving the results you want the bot to give?

:slight_smile: We get one issue while setting it as 3 and another issue on setting to 5. So, wanted to know which is the ideal number for the existing story path.

Can you post what issues you are facing with the two values, I might be able to help. Even i am working with Rasa for a project of mine.