GithubHelp home page GithubHelp logo

chuawjk / biocher_bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.45 MB

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

License: Apache License 2.0

Python 100.00%
chatbot education generative-ai llm rag telegram

biocher_bot's Introduction

🧬 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!

biocher_bot's People

Stargazers

Elijah Spina, PhD avatar  avatar maching learning avatar Kenny Chua avatar

Watchers

Kenny Chua avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.