rasa-site-bot
rasa-site-bot copied to clipboard
A chatbot that fetches events details from a conference's website
The bot is outdated and not maintained anymore
Site bot
A site bot build using rasa-nlu.
Setup
-
if you are using Ubuntu
pip install -r requirements.txt -
If you are using windows machine
pip install -r requirements.txtThe above command will fail for few packages likemitie. So you have to install the followingpip install numpy,scipy,sklearn,spacyIf you have error while downloading any of these packages download whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/ -
You will have two parts in this projects
- AI-Engine
The AI Engine part takes care of Natural language understanding It is built using a open source NLU agent called rasa-nlu
- Bot application
The bot application is a flask application that has a Client(Simple UI chat interface), a backend that fetches event details pydelhi conference website
-
Initially you need to train your bot to do that you need two json files
configand 'training_data'. -
To train your model you can use either 'spacy' or 'mitie' algorithm. For my application I am using
spacy.If you are using
mitieyou should download a.datfile from https://github.com/mit-nlp/MITIE/releases/download/v0.4/MITIE-models-v0.2.tar.bz2If you're using spacy run the following before training
python -m spacy download en_core_web_md python -m spacy link en_core_web_md en -
To train your ML model run. The training will take some time.
python -m rasa_nlu.train -c AI-engine/config_spacy.json --data AI-engine/data/sitebot-data.json -
Once the training is done you will have a
modelsfolder created with a timestamp -
Now you have to host this model for your bot application to use
python -m rasa_nlu.server -c AI-engine/config_spacy.json --path ./models/nlu/ -
Now that we have the AI-Engine up and running.Let's setup the knowledge base for the bot run
extract.pyunder bot_applicationspython bot-applicaiton/extract.pyYou will have a sqliteapp.dbcreated -
To run the application run
python app.py