RASA на локалхосте


https://www.youtube.com/watch?v=PfYBXidENlg


Поднимаю виртуальное окружение


$ python -m venv ./venv
$ source ./venv/bin/activate


$ pip install -U pip

// С последней версией были ошибки
// с этой версией работало
$ pip install rasa==3.0.9


$ rasa --version
Rasa Version      :         3.0.9


$ git clone https://github.com/wildmakaka/Rasa-3.0-rock-paper-scissors-chatbot


$ cd Rasa-3.0-rock-paper-scissors-chatbot/


$ rm -rf .rasa/cache/
$ rm -rf models/


$ rasa train


$ rasa run actions


// Еще 1 терминал
$ rasa shell
$ hi
$ rock


Your input ->  hi
Type 'rock', 'paper' or 'scissors' to play.
Your input ->  rock
You chose rock
The computer chose scissors
Congrats, you won!
Do you want play again?


Другие варианты:

Init


$ rasa init


? Please enter a path where the project will be created [default: current directory] [./rasa-assistant]

? Do you want to train an initial model? [Yes]

? Do you want to speak to the trained assistant on the command line? [Yes]

// Чтобы повторно запустить shell
$ cd ./rasa-assistant
$ rasa shell


Команды

$ rasa train nlu
$ rasa shell nlu

$ rasa shell train