Skip to content

Commit 6f920ba

Browse files
authored
Merge pull request RasaHQ#4708 from ortsaCniveK/augmented-memo-docs
document AugmentedMemoizationPolicy
2 parents b7b3a14 + e2cac7f commit 6f920ba

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Added
1515
-----
1616
- Added data validator that checks if domain object returned is empty. If so, exit early from the command ``rasa data validate``
1717
- Added the KeywordIntentClassifier
18+
- Added documentation for ``AugmentedMemoizationPolicy``
1819
- Fall back to ``InMemoryTrackerStore`` in case there is any problem with the current
1920
tracker store
2021

docs/core/policies.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,24 @@ training data. It predicts the next action with confidence ``1.0``
417417
if this exact conversation exists in the training data, otherwise it
418418
predicts ``None`` with confidence ``0.0``.
419419

420+
Augmented Memoization Policy
421+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
422+
423+
The ``AugmentedMemoizationPolicy`` remembers examples from training
424+
stories for up to ``max_history`` turns, just like the ``MemoizationPolicy``.
425+
Additionally, it has a forgetting mechanism that will forget a certain amount
426+
of steps in the conversation history and try to find a match in your stories
427+
with the reduced history. It predicts the next action with confidence ``1.0``
428+
if a match is found, otherwise it predicts ``None`` with confidence ``0.0``.
429+
430+
.. note::
431+
432+
If you have dialogues where some slots that are set during
433+
prediction time might not be set in training stories (e.g. in training
434+
stories starting with a reminder not all previous slots are set),
435+
make sure to add the relevant stories without slots to your training
436+
data as well.
437+
420438
.. _fallback-policy:
421439

422440
Fallback Policy

0 commit comments

Comments
 (0)