Skip to content

climate-change-bot/chatbot

Repository files navigation

RASA/ChatGPT Chatbot Component for Climate Change Bot

ci

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.

Restrictions

Code Entry Points

Running the Code

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 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.
  • 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