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 .env
Add 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.yml
Once all dependencies are installed, activate the newly-created environment using
conda activate biocher-bot.yml
Before 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_store
Finally, start the Telegram bot by running:
python -m src.bot
Happy learning!