Skip to content
shauryaa108Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– StudyBot AI

An AI-powered Telegram Study Assistant built using Node.js, Telegraf, Ollama, and Qwen/LLaVA. The bot helps students prepare for competitive exams by generating vocabulary, solving image-based questions, and providing previous year practice questions directly inside Telegram.

Current Version: v1.0


✨ Features

πŸ“š Vocabulary Generator

Generate 10 SSC CGL vocabulary words along with:

  • Meaning
  • Example sentence

Command:

/vocabs

πŸ“· AI Question Solver

Students can send an image of a question and receive a step-by-step explanation.

Workflow:

/question

↓

Send Image

↓

LLaVA Vision Model

↓

Step-by-step Solution

πŸ“ Previous Year Questions

Generate SSC CGL-style previous year questions for any topic.

Example:

/pyp Profit and Loss

or

/pyp

then send the topic name.


πŸ“– Interactive Guide

/guide

Displays all available commands and usage instructions.


πŸ›  Tech Stack

Backend

  • Node.js
  • Telegraf
  • Axios
  • Dotenv

AI Models

  • Ollama
  • Qwen 2.5 (Text Generation)
  • LLaVA (Vision Question Solving)

Platform

  • Telegram Bot API

βš™οΈ Installation

Clone the repository

git clone <your_repo_url>
cd StudyBot-AI

Install dependencies

npm install

Create a .env file

APIBOTKEY=YOUR_TELEGRAM_BOT_TOKEN

Install Ollama

https://ollama.com

Pull required models

ollama pull qwen2.5:3b
ollama pull llava

Start Ollama

ollama serve

Run the bot

node bot.js

πŸ“‚ Current Project Structure

StudyBot-AI/

β”‚
β”œβ”€β”€ bot.js
β”œβ”€β”€ package.json
β”œβ”€β”€ .env
└── README.md

πŸš€ Current Commands

Command Description
/start Starts the bot
/guide Shows available commands
/vocabs Generates 10 SSC CGL vocabulary words
/question Solves image-based questions
/pyp Generates previous year questions

🧠 How It Works

Vocabulary

Telegram

↓

/vocabs

↓

Qwen 2.5

↓

Vocabulary Response

Image Question Solving

Telegram

↓

Image Upload

↓

Base64 Conversion

↓

LLaVA Vision Model

↓

Step-by-step Solution

Previous Year Questions

User Topic

↓

Qwen 2.5

↓

Generated SSC-style Questions

πŸ”₯ Version 2 Roadmap

The current version establishes the core AI functionality. Version 2 will transform the bot into a complete AI study assistant.


πŸ“ Modular Project Structure

StudyBot-AI/

β”‚
β”œβ”€β”€ commands/
β”‚
β”œβ”€β”€ handlers/
β”‚
β”œβ”€β”€ services/
β”‚
β”œβ”€β”€ utils/
β”‚
β”œβ”€β”€ database/
β”‚
β”œβ”€β”€ prompts/
β”‚
β”œβ”€β”€ downloads/
β”‚
└── bot.js

🎯 Planned Features

πŸ’¬ AI Chat Mode

Talk naturally with the bot without commands.

Example

Explain Binary Search.

What is Dijkstra Algorithm?

Give me a Java program for Linked List.

πŸ“„ PDF Summarizer

Upload notes or PDFs.

Receive

  • Summary
  • Important points
  • Revision notes

🎀 Voice Assistant

Upload voice notes.

↓

Speech-to-Text

↓

LLM

↓

Answer


🧩 Quiz Generator

Generate topic-wise quizzes.

Example

/quiz Graphs

Returns

  • MCQs
  • Answer Key
  • Difficulty Levels

πŸ—‚ Flashcards

Generate revision flashcards for any topic.

Example

/flashcards Operating System

πŸ’» Code Generator

Generate code snippets.

Example

/code Merge Sort in C++

🐞 Code Debugger

Paste code.

Receive

  • Bug Explanation
  • Fixed Code
  • Time Complexity
  • Optimization Tips

Daily Study Planner

Generate personalized daily study schedules.

Example

/studyplan

DSA Practice Assistant

Recommend problems based on

  • Topic
  • Difficulty
  • Company

Example

/leetcode Graphs Medium

Persistent Vocabulary Database

Store every generated vocabulary list.

Features

  • Daily Revision
  • Search
  • Random Revision
  • Quiz from Saved Words

Progress Tracking

Track

  • Questions Solved
  • Vocabulary Learned
  • Daily Streak
  • Quiz Scores

Gamification

  • XP System
  • Daily Streaks
  • Badges
  • Leaderboard

Database Support

Replace temporary memory with persistent storage.

Possible choices

  • SQLite
  • MongoDB

Modular Prompt Templates

Separate prompt management for

  • Vocabulary
  • Question Solving
  • Coding
  • Quiz
  • Notes
  • Flashcards

Long-Term Goal

Build an AI-powered Telegram assistant capable of serving as a personal study companion by integrating:

  • Large Language Models
  • Vision Models
  • Document Understanding
  • Speech Recognition
  • Progress Tracking
  • Personalized Learning

The goal is to provide students with an intelligent, always-available assistant for exam preparation, coding practice, revision, and doubt solvingβ€”all within Telegram.


πŸ‘¨Author

Yash Goyal

If you found this project interesting, feel free to star the repository and contribute.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages