Is anyone having luck with checkpoints? They seem fairly counterintuitive to me, so maybe I’m misunderstanding how they work. I created the simplest possible example of a bot that would have a ‘greeting’ and then a separate story as a checkpoint to ‘tell a joke’, the idea being that little chunk could be used elsewhere in the bot later. But the flow seems to not use the checkpointed part.
Here’s one version, and the output from rasa visualize
next to it.
so the user intent tell me a joke
is recognized, but the bot will skip over the > telljoke
part and jumps right to the end.
With rasa interactive
the intent is indeed detected.
I tried more complex examples and without fail it doesn’t behave as I would expect, so I’d like to see if other people are having any more luck.
My guess is that the > checkpoint
syntax is just something used by a pre-processor to duplicate a bunch of stories for the training session, basically creating many stories to predict with.
Another problem is that the symbol to define/label a checkpoint comes at the end of that section. That means you can’t link to another story at the end of one part. For example.
* greet
- utter_greet
> goto_menu
this would create the labelled section, not link to it.
I did try another version putting the > use checkpoint
in the middle of a section, not the end.
But still unpredictable results.
another try putting the > use checkpoint
at the start of the story path, will give a visualize like it might do something useful
## asked joke
> telljoke
* greet
- utter_greet
- utter_goodbye
## tell joke
- utter_joke
> telljoke
but in fact the joke never comes out…
So overall this feature seems really confusing and/or buggy. maybe that’s why the advice is not to use it?
references