This is the chatbot component of the Climate Change Bot project. The goal of this project is to develop a chatbot that can answer questions about climate change.
- The chatbot is currently only optimized for german
- The chatbot is only accessible from www.climate-change-bot.site.
- All Intents, Rules and Stories are defined in rasa/data
- Configuration of the rasa pipeline rasa/config.yml
- Responses and definition of slots rasa/domain
- Code of the rasa action server rasa/actions
Only described for linux.
- Install first python 3.10.
- Create a virtual environment and install the packages in the requirements.txt.
- Comment out the tracker_store section endpoints.yml to use the InMemoryTrackerStore. Otherwise, you need to install the postgres database and set the correct settings.
- Navigate in the console to the rasa folder.
- download the spacy files:
python3 -m spacy download de_core_news_md
- Build the rasa model.
rasa train --domain domain
- Run the chatbot.
rasa run -vv --enable-api -m ./models/ --endpoints endpoints.yml
- Open another console to run the action server and navigate to the rasa folder.
- Set the environment variable with your OpenAI ChatGPT API Key and run the action server.
export OPENAI_API_KEY=your_key
rasa run actions --actions actions --port 5055