# Memoization Policy with max history

**URL:** <https://forum.rasa.com/t/memoization-policy-with-max-history/2021>\
**Category:** Rasa Open Source\
**Created:** [October 18, 2018, 5:47pm UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021 "2018-10-18T17:47:42Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [February 6, 2019, 8:13pm UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021/22 "2019-02-06T20:13:08Z")

</div>

Nearly all of my stories are very short and I want Memoization to ignore the dialogue history. For this reason, I’ve set `max_history: 1` for both the Memoization & Keras policy. The exceptions are some slot filling via forms.

Never the less, I still have situations where the Memoization says there is no memorized next action.

This can happen when there’s an active form and the user asks a different intent. Is there a recommended way to exit the active form and switch to the intent?

---

<div class="post-metadata">

**Author:** ![1000sprites](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/1000sprites/32/23615_2.png) [@1000sprites](https://forum.rasa.com/u/1000sprites)\
**Post date:** [December 31, 2019, 9:39am UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021/23 "2019-12-31T09:39:59Z")

</div>

if I want to exactly match all stories, how to set max\_history? thanks so much

---

<div class="post-metadata">

**Author:** ![rashmi.metri](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@rashmi.metri](https://forum.rasa.com/u/rashmi.metri)\
**Post date:** [June 2, 2020, 6:31am UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021/24 "2020-06-02T06:31:41Z")

</div>

So, ultimately what worked here? When there is a scenario where we need to match exact stories and also some expected stories(either repeated question or out of scenario question)… What should be the max\_history and augmentation factor for policies?

Please confirm please

---

<div class="post-metadata">

**Author:** ![iszainab](https://avatars.discourse-cdn.com/v4/letter/i/ad7895/32.png) [@iszainab](https://forum.rasa.com/u/iszainab)\
**Post date:** [July 27, 2020, 7:16am UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021/25 "2020-07-27T07:16:06Z")

</div>

Can we get a response to this please?

---

<div class="post-metadata">

**Author:** ![NIkhilBhaskar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nikhilbhaskar/32/18420_2.png) [@NIkhilBhaskar](https://forum.rasa.com/u/NIkhilBhaskar)\
**Post date:** [December 6, 2021, 11:37am UTC](https://forum.rasa.com/t/memoization-policy-with-max-history/2021/26 "2021-12-06T11:37:00Z")

</div>

I am getting this warning DEBUG rasa\_core.policies.memoization - There is no memorised next action

I have a very simple story and I want rasa to follow that exact story

my max\_history value is 5

@ChrisRahme can you help?

[Previous page](https://forum.rasa.com/t/memoization-policy-with-max-history/2021.md?page=1)
