1. Replace knowledge-base.txt with your own knowledge-base
- Delete the existing .ext
- Add your stuff in
knowledge-base - Run
python concat.pyto compile the above folder intoknowledge-base.txt
OPENAI_API_KEY: https://platform.openai.com/api-keysTELEGRAM_TOKEN: https://t.me/BotFather
You can test requests using
python request.pywithout a telegram token
- You can find your owner id at https://t.me/username_to_id_bot
- run locally with docker, or:
pip install -r "requirements.txt"thenpython bot.py - or deploy to cloud with https://fly.io:
flyctl deploy --ha=false(atm the script only supports 1 machine, check the examplefly.toml) - add bot in a group and use
/add_group groupidto whitelist it and the bot is ready to answer questions with/promptwhenever you want
/add_admin your_idto add yourself as an admin/add_group group_idto add a new group with rate limiting of 10 messages/day