diff --git a/src/slackbot/README.md b/src/slackbot/README.md new file mode 100644 index 0000000..f64be70 --- /dev/null +++ b/src/slackbot/README.md @@ -0,0 +1,31 @@ +# How to deploy the Nesta Way Slackbot v1 + +## 1. Install Skypilot in new or existing environment + +Poetry: `poetry add "skypilot=0.4.1" --group slackbot` + +pip: `pip install "skypilot==0.4.1"` + +## 2. Export corresponding env vars + +```bash +export OPENAI_API_KEY= # +export QDRANT_URL= # +export QDRANT_API_KEY= # +export QDRANT_COLLECTION_NAME=nesta_way_bge-base-v1.5-en_big-chunks # +export SLACK_APP_TOKEN= # +export SLACK_BOT_TOKEN= # +``` + +## 3. Run below script in project root and confirm prompt + +```bash +sky launch -c slackbot \ + --env SLACK_BOT_TOKEN --env SLACK_APP_TOKEN \ + --env QDRANT_URL --env QDRANT_API_KEY --env QDRANT_COLLECTION_NAME \ + --env OPENAI_API_KEY --env TOKENIZERS_PARALLELISM=true \ + --use-spot \ + ./infra/skypilot/serve_slackbot_eu-west-2.yaml +``` + +## ***Remember to turn down unused instances: `sky down slackbot`***