Skip to content

ShubhamMahajan880/studyAlpha-Ai-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  StudyAlpha-AI-Agent

Autonomous Study & Revision System

Your Personal AI Study Coach powered by Multi-Agent Intelligence

Made with Python Multi-Agent System Machine Learning RAG Streamlit

image

๐Ÿš€ Google ร— Kaggle Agents Intensive โ€“ Capstone Project

๐Ÿ† Hackathon Writeup + Full System Documentation


๐ŸŸฆ Problem Statement

Students today struggle with learning consistency.
Effective learning requires:

  • ๐Ÿ—‚๏ธ structured planning
  • ๐Ÿ“Š progress tracking
  • ๐Ÿ“ performance evaluation
  • โ— early detection of weak topics

Most learners donโ€™t know what to study next, how long to study, or when to revise.
Traditional AI tools simply answer questions โ€” they donโ€™t:

  • plan
  • evaluate
  • remember
  • adapt

๐Ÿ’ก StudyAlpha solves this by acting as a complete, autonomous study coach that:

  • plans the study roadmap
  • generates quizzes
  • evaluates understanding
  • predicts weaknesses using ML
  • adjusts future study sessions automatically
image

๐Ÿค– Why I Used Agents

Learning involves multiple interdependent tasks:

โœ” planning
โœ” quizzing
โœ” evaluating
โœ” memory retrieval
โœ” weakness prediction
โœ” revision scheduling

No single LLM call can manage this entire workflow.

Agents enable:

  • ๐Ÿ”น Modularity โ€” each task handled by a specialized sub-agent
  • ๐Ÿ”น Delegation โ€” one agent passes output to the next
  • ๐Ÿ”น Memory โ€” mistakes & patterns influence future learning
  • ๐Ÿ”น Multi-step reasoning โ€” structured learning cycles
  • ๐Ÿ”น Extensibility โ€” new agents or tools can be added easily

๐Ÿ“˜ StudyAlpha behaves like a real human tutor โ€” thoughtful, adaptive, and aware of past performance.

image

๐ŸŒ Deployment Platform: Streamlit Cloud Entry file: app.py Auto-deploy: On every push to main ๐Ÿ”— Live App: https://studyalpha-ai-agent-muwkpf3edkao3iva87sxgp.streamlit.app

๐Ÿ—๏ธ Architecture Overview

StudyAlpha is a multi-agent learning ecosystem orchestrated by a central StudyOrchestrator.


1๏ธโƒฃ StudyOrchestrator (Master Controller)

Controls the entire pipeline:

  • planning
  • quiz creation
  • evaluation
  • tracking
  • revision generation

2๏ธโƒฃ Planner Agent

Builds personalized study plans using:

  • topics
  • priority
  • difficulty
  • available hours
  • duration

Outputs a multi-day optimized schedule.


3๏ธโƒฃ Quiz Agent

  • Generates 3 conceptual questions
  • Uses a TF-IDF RAG Memory
  • Pulls context from past mistakes & logs

4๏ธโƒฃ Revision Agent

Generates targeted revision tasks based on:

  • past mistakes
  • predicted weaknesses
  • forgotten topics

Optimized for spaced repetition.


5๏ธโƒฃ Tracker Agent

Evaluates quiz answers and logs:

  • accuracy
  • score
  • correctness patterns

Feeds data into the ML model.


6๏ธโƒฃ Weakness Predictor (ML Model)

A GradientBoostingClassifier predicts:

  • weakness probability
  • likelihood of future mistakes
  • topics needing urgent focus

7๏ธโƒฃ Memory Bank (RAG System)

Stores and retrieves:

  • quizzes
  • explanations
  • errors
  • performance logs
  • improvement history

Powered by TF-IDF + Cosine Similarity.


8๏ธโƒฃ Streamlit UI (Optional)

A simple interface to:

  • generate study plans
  • take quizzes
  • see analytics
  • visualize performance
image

๐Ÿ”„ Architecture Summary

Plan โ†’ Quiz โ†’ Evaluate โ†’ Predict Weakness โ†’ Revise โ†’ Store Memory โ†’ Adapt Next

๐Ÿ–ผ๏ธ Architecture Diagram

image

๐ŸŽฌ Demo and Simulation

The notebook demonstrates a full 7-day learning simulation:

  • study plans
  • quiz generation
  • evaluation
  • ML-based weakness prediction
  • dynamic revision cycles
  • memory retrieval
  • performance graphs
  • time allocation charts
  • exported reports
image

๐Ÿ“… Study Plan Example

For topics:

  • Arrays โ€“ Priority 2
  • Graphs โ€“ Priority 1
  • DP โ€“ Priority 2

The planner builds a 7-day optimized schedule.

image

๐Ÿ”„ 2) WORKFLOW DIAGRAM

(Insert your workflow diagram image below โ€” drag & drop into GitHub editor and replace the link)

image image

๐Ÿ“ Quiz Generation

Example for topic DP:

  • 3 conceptual MCQs
  • Memory-aware grounding

๐Ÿ“ˆ Evaluation & Tracking

Logs include:

  • correct / incorrect
  • explanations
  • topic-wise accuracy
image

๐Ÿ”ฎ Weakness Prediction

ML model assigns a numerical probability:

Weakness Probability: 0.73  
โ†’ High chance of confusion  

๐Ÿ” Revision Planning

Revision Agent outputs:

  • targeted tasks
  • recommended questions
  • spaced repetition intervals

๐Ÿ“Š Analytics & Visualizations

Includes:

  • study-time distribution chart
  • accuracy line graph
  • mistake clusters
  • topic dependency graph
  • memory-retrieval maps
  • revision heatmaps

๐Ÿ› ๏ธ The Build

โœจ Engineering Philosophy

StudyAlpha is:

  • modular
  • reproducible
  • deterministic
  • easy to test
  • extendable

๐Ÿงฐ Technologies Used

  • Python
  • Scikit-learn
  • Pandas / NumPy
  • TF-IDF / Cosine Similarity
  • Streamlit
  • Joblib
  • Logging & Tracing

๐Ÿ”ง Key Design Decisions

  • Deterministic mock LLM (no API keys required)
  • True multi-agent architecture
  • RAG-based quiz grounding
  • ML-based weakness prediction
  • Structured modular repository

๐Ÿ“ฆ Notebook Includes

  • agent modules
  • memory system
  • planner/quiz/revision pipelines
  • ML training + explainability
  • analytics & visualizations
  • reproducible tests
  • synthetic student simulation

โณ Future Improvements

  • Gemini Integration for richer feedback
  • Cloud deployment (API/Serverless)
  • Long-term spaced repetition pipeline
  • Daily streak tracking
  • PDF/notes ingestion
  • Leaderboards & gamification

๐Ÿ“ Final Note

StudyAlpha acts like a real AI tutor โ€” doing more than answering questions.
It thinks, plans, evaluates, adapts, and remembers.

This system combines:

  • multi-agent intelligence
  • memory
  • ML prediction
  • structured planning

Perfectly aligned with the goals of the Google ร— Kaggle Agents Intensive Capstone.

image

๐Ÿ‘ค Author

Shubham Mahajan

AI & Web Developer
โ€œSolve. Fail. Learn. Repeat.โ€


๐Ÿ”— Project Links

About

๐ŸŽ“ StudyAlpha is an intelligent, end-to-end AI Study Coach powered by multi-agent collaboration, memory-augmented reasoning, adaptive quizzes, and ML weakness prediction. Built for the Google ร— Kaggle Agents Intensive โ€” Freestyle Track. ๐Ÿ’ก Personalized plans โ€ข ๐Ÿง  RAG memory โ€ข ๐Ÿ“ Quizzes โ€ข ๐Ÿ“Š ML evaluation โ€ข โš™๏ธ Streamlit UI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages