- For chatbot demo, please go to https://leobot.leocdp.com
- The LEO BOT works an AI chatbot with the backend using Google Generative AI (PaLM 2) and Mistral-7B
- For the GOOGLE_GENAI_API_KEY, please check more details at https://developers.generativeai.google/guide
- For the GOOGLE_APPLICATION_CREDENTIALS, go to https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials
- Author: Trieu Nguyen at https://github.com/trieu
- Follow my YouTube channel for more knowledge: https://www.youtube.com/@bigdatavn
- Need Python 3.10, run following commands
sudo apt install python-is-python3
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.10
sudo apt-get install python3.10-venv
pip install virtualenv
python -m venv env
source env/bin/activate
pip install -r requirements.txt
- You need to refresh the session of login shell after install python-is-python3
- Need to create a file .env to store environment variables
- In the file .env, set value like this example
LEOBOT_DEV_MODE=true
HOSTNAME=leobot.example.com
GOOGLE_APPLICATION_CREDENTIALS=
GOOGLE_GENAI_API_KEY=
REDIS_USER_SESSION_HOST=127.0.0.1
REDIS_USER_SESSION_PORT=6480
- Set correct DIR_PATH in start_app.sh, an example like this
DIR_PATH="/build/leo-bot/"
- Run ./start_app.sh for PRODUCTION or ./start_dev.sh for DEVELOPMENT
- The LEO BOT is started at the host 0.0.0.0 with port 8888
- For demo and local test, need Redis Server. Open redis-cli, run: hset demo userlogin demo
- Go to the HOSTNAME to test your chatbot.