Skip to content

agloriousli/passion-to-learn-public

Repository files navigation

AI-Powered Study Assistant

An advanced AI-driven study assistant that automatically summarizes educational content and generates high-quality multiple-choice questions for active recall learning.

Features

  • AI-Powered Summarization: Fine-tuned T5 transformer model for abstractive summarization of educational content
  • Smart Question Generation: GPT-style few-shot prompting for generating contextually relevant questions
  • High-Quality Distractors: BERT-based distractor generation pipeline for plausible wrong answers
  • Question Quality Ranking: Siamese network trained on Quora duplicate question pairs to ensure question quality
  • Adaptive Difficulty: Reinforcement learning-based difficulty adjustment using bandit algorithms
  • Student Feedback Loop: Dynamic difficulty adjustment based on student performance

Tech Stack

Frontend

  • React
  • Vite
  • Radix UI
  • Tailwind CSS

Backend

  • Python
  • FastAPI
  • PyTorch
  • Hugging Face Transformers
  • Sentence Transformers
  • Scikit-learn

Getting Started

Prerequisites

  • Node.js 16+
  • Python 3.8+
  • CUDA-capable GPU (recommended for optimal performance)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/ai-study-assistant.git
cd ai-study-assistant
  1. Install frontend dependencies:
npm install
  1. Install backend dependencies:
cd backend
pip install -r requirements.txt
  1. Start the development servers:

Frontend:

npm run dev

Backend:

cd backend
uvicorn app.main:app --reload

The application will be available at:

Usage

  1. Enter your study material in the text area
  2. Select desired difficulty level
  3. Click "Summarize" to get an AI-generated summary
  4. Click "Generate Questions" to create multiple-choice questions
  5. Answer the questions to help the system learn and adjust difficulty

Model Performance

  • Outperforms baseline summarizers (TextRank, LexRank) by >25% on ROUGE and BLEU scores
  • High-quality question generation with contextually plausible distractors
  • Adaptive difficulty adjustment based on student performance

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Hugging Face for the transformer models
  • Quora for the question pair dataset
  • The open-source community for various tools and libraries

About

KTByte Hacks 2024: AI-Based Study Tool (Generates MCQ)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published