Skip to content

🧬 Biocher Bot is a Telegram chatbot designed to answer questions on A Level Biology.

License

Notifications You must be signed in to change notification settings

chuawjk/biocher_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧬 Biocher Bot 🧬

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.

Biocher Bot in action

Preparing OpenAI and Telegram crendentials

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.

Installing dependencies

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

Preparing the knowledge base

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

Starting Biocher Bot

Finally, start the Telegram bot by running:

python -m src.bot

Happy learning!

About

🧬 Biocher Bot is a Telegram chatbot designed to answer questions on A Level Biology.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages