Before training the agents we need to install appropriate version of python and pip if not already installed.
# MacOS
> brew install python@3.9
When the appropriate version of python is installed then Update the pip3 package manager to the latest version.
> python3.9 -m pip install --upgrade pip
Now that you have the proper versions of python and pip installed let’s setup the virtual environment. For more information on python virtual environments please see the documentation.
> python3.9 -m virtualenv venv
> source ./venv/bin/activate
Rasa is an open source conversational AI platform that allows you to understand and hold conversations. It supplies the building blocks for creating virtual assistants or chatbots.
Once your sytem environment is setup correctly we are going to install Rasa
.
> python -m pip install rasa
The Agent is already initializes, so once Rasa is installed we can run any number of shell commands to interact.
Train the Agent using NLU data and stories, saves trained model in ./models
.
> rasa train
Start an interactive learning session to create new training data by chatting with the Agent.
> rasa interactive
Load the Agent and talk on the command line.
> rasa shell
Starts a server with the Agent.
> rasa run --enable-api
Generates a visual representation of your stories.
> rasa visualize
Github Repo
Back to indra.ai
©2022 Quinn Michaels; All Rights Reserved.