Rasa_core run doesn't take --interactive argument

rasa_core version: 0.11.3

Hello, I migrated to the last version of rasa_core and I am trying to use interactive learning. I’m using the comand from http://rasa.com/docs/core/0.11.2/interactive_learning/

python -m rasa_core_sdk.endpoint --actions actions&

python -m rasa_core.run \
  --interactive -d models/dialogue \
  --stories-out stories_interactive.md \
  -u models/default/nlu

But i get:

C:\Users\Leonardo\Documents\GitHub\starter-pack>python -m rasa_core.run  --interactive -d models/dialogue --stories-out stories_interactive.md -u models/default/nlu
usage: run.py [-h] -d CORE [-u NLU] [-p PORT] [--auth_token AUTH_TOKEN]
              [--cors [CORS [CORS ...]]] [-o LOG_FILE]
              [--credentials CREDENTIALS] [--endpoints ENDPOINTS]
              [-c {cmdline,facebook,slack,telegram,mattermost,twilio,rasa,botframework,rocketchat,callback,rest}]
              [--enable_api] [-v] [-vv] [--quiet]
run.py: error: unrecognized arguments: --interactive --stories-out stories_interactive.md

:face_with_raised_eyebrow:

They need to change the documentation. it is this now:

python -m rasa_core.train --online -d models/dialogue/domain.yml -s data/stories.md -u 
models/nlu/default/current/ -o models/dialogue --epochs 200
3 Likes

Could you extend on this a little bit more?
Do you now have to create a model first which has “online”-training enabled to interactively create new stories?

So first you need to have a trained dialogue model and a trained nlu model. This runs the rasa_core run script. It passes it the online flag. The -d is the path to your domain file, -s is the path to your training data, -u is the directory to your nlu model, and -o is the directory to your dialogue model. This will start the script and allow you to train it online, the dialogue is being trained and not the nlu, so if you are having problems with the correct intents being picked up, you need to add more training data to your nlu and retrain your nlu.

This only trains the dialogue model.

It’s updated in the master version of the docs: https://rasa.com/docs/core/master/interactive_learning/

2 Likes

But not deployed, as it seems: https://rasa.com/docs/core/interactive_learning/

(Should an issue be raised on github issues?)

nope, you’re looking at the docs for 0.11.3, it’s fixed on the master version of the docs: https://rasa.com/docs/core/master/interactive_learning/

okay. But 0.11.3 is out there?! Should it not be under core then? I navigated from the main page to a documentation I installed which is wrong. So it will only be fixed “stable” on the next release?

well, the docs you click on are always the docs of the latest stable version. in any case, we’ve released a minor Core version, so the correct docs show up now