The source code distribution uses Poetry
poetry install
Create a Google Drive folder and safe all the documents in it. Please note, currently, shortcuts are not supported
Make sure the service account you created has access to the folder you would like to ingest
- Get the ID of the folder you would like to use for ingestion and set the environment variable
export GOOGLE_DRIVE_FOLDER_ID=< Folder ID >
- Point the application to the service account file
export SERVICE_KEY_FILE=< Path to the service key json file >
./knowledge_base_gpt/apps/ingest/ingest.py
The slackbot relies on Redis for storage.
You can use Podman and Quadlet to run it locally.
- Create the file
~/.config/containers/systemd/redis.container
[Container] Image=docker.io/redis/redis-stack:latest PublishPort=6379:6379 PublishPort=8001:8001 ContainerName=redis
- Reload the systemd daemon
systemctl --user daemon-reload
- Start the service
systemctl --user start redis.service
TBD
- Get the Bot and Application tokens and set the corresponding environment variables
export SLACK_BOT_TOKEN=<Bot Token> export SLACK_APP_TOKEN=<Application Token>
- Set the name of the slack channel to forward unanswered questions to
export FORWARD_QUESTION_CHANNEL_NAME=<Channel Name>
- Set the location to store the chat logs
export CHAT_LOGS_FILE=<Path to the chat log file>
python -m knowledge_base_gpt.apps.slackbot