An advanced, full-stack AI-driven educational platform that transforms static lecture videos into interactive, dynamic learning environments. Built with a highly user friendly frontend, the application automatically indexes video transcripts to generate comprehensive lesson summaries, dynamic quiz assessments, and an interactive context-aware AI co-pilot.
- Premium Dark UI Dashboard: Features a clean, accessible layout featuring high-fidelity styling built with Tailwind CSS.
- Lecture Synthesis & Roadmap: Replaces arbitrary timeline segments with an AI-generated academic overview, review time allocation budget, and a curated key takeaways panel.
- Dynamic Knowledge Assessment: Generates customized multiple-choice questions with real-time semantic feedback loops (correct options highlight in emerald; incorrect choices flash in rose).
- Interactive AI Assistance: A vector-indexed contextual assistant sitting side-by-side with an embedded YouTube stream player, allowing students to query specifics across long-form lectures.
- Auto-Curriculum Exploration: Every suggested forward topic features an automated external search component mapping directly into live YouTube search indexes via encoded URI protocols.
- React.js (Vite) β Single Page Application structural foundation.
- Tailwind CSS β Declarative layout and interaction engines.
- PostCSS & Autoprefixer β Cross-browser style parsing automation.
- FastAPI β High-performance execution router framework.
- LangChain β LLM chaining architecture and document loader ecosystem.
- ChatGroq model: llama-3.3-70b-versatile β Structured JSON schematic execution layer.
- ChromaDB β Local standalone vector database instance storage (
data/chroma_db).
ai-studybuddy/
βββ backend/
β βββ app/
β β βββ main.py # FastAPI core engine and global CORS router config
β β βββ services/
β β βββ videoprocessor.py # YouTube Loader and transcript parsing
β β βββ quizgen.py # Pydantic structured quiz generation logic
β β βββ planner.py # Synthesis, takeaways, and milestone recommendations
β βββ .env # System environmental authentication keys
β βββ requirements.txt # Python library dependencies
β
βββ frontend/
βββ src/
β βββ features/
β β βββ Dashboard.jsx # Central nexus orchestrator
β β βββ StudyPlanner.jsx # Study Roadmap and YouTube redirect links
β β βββ QuizDashboard.jsx# Real-time evaluation button state matrix
β β βββ VideoChat.jsx # Stream player & context-aware chat logs
β βββ App.jsx # Top-level viewport element loader
β βββ index.css # Global Tailwind compiler directive configurations
βββ tailwind.config.js # Workspace utility routing scanner
βββ package.json # Node package configurations
Below are the interface states of the AI StudyBuddy Workspace processing an active lecture vector index:
Follow these steps to get the project running smoothly on your local machine.
Make sure the following are installed:
- Node.js (v18 or higher)
- Python (v3.9 or higher)
- Git
git clone https://github.com/Anwesha28S/StudyBuddy.git
cd StudyBuddyNavigate to the backend directory:
cd backendpython -m venv venvWindows (Command Prompt)
venv\Scripts\activateWindows (PowerShell)
.\venv\Scripts\Activate.ps1Mac/Linux
source venv/bin/activatepip install -r requirements.txtCreate a .env file inside the backend/ directory:
GROQ_API_KEY=your_groq_api_key_here
HF_token=your_hftoken_hereuvicorn app.main:app --reloadThe backend will be available at:
http://localhost:8000
Open a new terminal and navigate to the frontend directory:
cd frontendnpm installCreate a .env file inside the frontend/ directory:
VITE_API_URL=http://localhost:8000npm run dev -- --forceThe frontend will be available at:
http://localhost:5173
- Start the FastAPI backend server.
- Start the Vite frontend server.
- Open your browser and visit:
http://localhost:5173
Paste a YouTube URL and start generating summaries, quizzes, and study plans.
Transcript extraction depends on YouTube captions.
β Ensure the selected video has captions (CC) enabled.
Videos without captions may not generate summaries, quizzes, or study materials correctly.
Once both servers are running, you can start using AI StudyBuddy locally.



