Rasa upgrade from 1.x to 3.x

Hi,

I am planning to migrate our rasa bot from 1.10.3 to 3.x ultimately. Since, many features are deprecated and removed in 3.x, I am planning to stage migration to 2.x and eventually to 3.x. But the NLU conversion code from .md to .yaml is failing.

If I run ‘rasa data convert nlu -vv -f yaml --data=./data/nlu --out=./data/nlu1’, i get the error:

rasa data convert nlu: error: argument -f/–format: invalid choice: ‘yaml’ (choose from ‘json’, ‘md’)

And when i run rasa data convert core -vv -f yaml --data=./data/stories --out=./data/stories1, i get the error:

rasa data convert: error: invalid choice: ‘core’ (choose from ‘nlu’)

What am i missing?

Hi @lokkrish

Reference Video ( Ubuntu based) : MIGRATING RASA 1.x to RASA 2.0 | RASA OPEN SOURCE 2.0 - YouTube but the process will be same for Window too.

Do update the Rasa and Rasa-SDK to at least 2.8.3 first and then follow:

For 1.10 to 2.0

rasa data convert nlu -f yaml --data={SOURCE_DIR} --out={TARGET_DIR}
rasa data convert nlg -f yaml --data={SOURCE_DIR} --out={TARGET_DIR}
rasa data convert core -f yaml --data={SOURCE_DIR} --out={TARGET_DIR}

Then, just update the rasa to a latest version and train the model.

Please do ref this link for mode detail : Version Migration Guide

Note: Other file such as config.yml you need to do manually, that will be best as my experience.

I hope this will help you to solve you issue.

1 Like