peci
(do)
December 8, 2021, 4:09pm
1
Hello everyone,
I have a longer story that mainly consists of questions and yes / no answers by userinput, so something like this:
- story: questionnaire
steps:
- action: utter_q1
- intent: affirm
- action: utter_q2
- intent: affirm
- action: utter_q3
- intent: deny
- action: utter_q4
- intent: affirm
Is there any way to split this story into a few smaller stories?
I tried doing this:
- story: part 1
steps:
- action: utter_q1
- intent: affirm
- action: utter_q2
- intent: affirm
- action: utter_q3
- story: part 2
steps:
- action: utter_q3
- intent: deny
- action: utter_q4
- intent: affirm
But this did not work (after utter_q3 next action could not be predicted).
I also tried to use checkpoints, but that did not work alltogether.
Any ideas on this? Of course I’m open to any alternatives ideas on how to make this kind of yes/no questionnaire.
nik202
(NiK202)
December 8, 2021, 4:53pm
2
@peci Checkpoint should work:
- story: part 1
steps:
- action: utter_q1
- intent: affirm
- action: utter_q2
- intent: affirm
- action: utter_q3
- checkpoint: check_asked_question
- story: part 2
steps:
- checkpoint: check_asked_question
- intent: deny
- action: utter_q4
- intent: affirm
peci
(do)
December 8, 2021, 4:58pm
3
Hi,
unfortunately it does not.
The story already begins with a checkpoint. Might this be the problem?
Also: the documentation sais to not have too many checkpoints. So is it worse to have a very long story or to have multiple checkpoints?
nik202
(NiK202)
December 8, 2021, 4:59pm
4
@peci please follow the doc for checkpoint, did you tried the above code? please delete the older trained model and do train again.
peci
(do)
December 8, 2021, 5:51pm
5
Thank you very much for your help.
Deleting the old models solved the issue. Is it generally best to always delete the old models?
nik202
(NiK202)
December 8, 2021, 6:03pm
6
@peci that’s my secret tip yes make sure you delete and keep only 1 previous model.
1 Like