Biocher Bot is a Telegram chatbot designed to answer questions on A Level Biology. Chatbot responses to user questions are based on retrieval-augmented generation against a predefined knowledge base, such as a collection of relevant textbooks.
First, make a copy of .env-template and rename it as .env.
cp .env-template .envAdd your OpenAI API key and Telegram token to .env.
Biocher Bot uses conda to manage Python environments. To install the necessary dependencies, use the command:
conda env create -f biocher-bot.ymlOnce all dependencies are installed, activate the newly-created environment using
conda activate biocher-bot.ymlBefore using Biocher Bot, it is first necessary to populate the knowledge base with relevant reference texts such as textbooks, articles or research papers.
The references texts must be in PDF format. Place the PDFs in the ./data directory (create the folder if it does not already exist).
Populate the knowledge base by running:
python -m src.vector_storeFinally, start the Telegram bot by running:
python -m src.botHappy learning!