An AI-powered personalized learning platform designed to provide quality education to rural students, focusing on SDG 4: Quality Education. This application uses Google's Gemini AI to generate personalized lessons and quizzes based on the student's age, subject of interest, and skill level.
- Personalized Learning: Custom lessons based on student's age, subject, and skill level
- Interactive Quizzes: AI-generated quizzes to test understanding
- Progress Tracking: Save and track learning progress over time
- Mobile-Friendly: Responsive design works on all devices
- Multilingual Support: Option to translate lessons into different languages
- Voice Input: Answer quiz questions using voice (optional)
- Certificates: Generate certificates upon completing topics
- Python 3.8 or higher
- A Google Gemini API key (get it from Google AI Studio)
-
Clone the repository:
git clone <repository-url> cd student-ai-agent
-
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Set up your environment variables:
- Copy the
.env.examplefile to.env - Add your Gemini API key to the
.envfile
- Copy the
-
Start the Streamlit app:
streamlit run app.py
-
Open your web browser and navigate to
http://localhost:8501
app.py: Main Streamlit applicationgemini_agent.py: Handles interactions with the Gemini AIdata_handler.py: Manages user data and progress trackingrequirements.txt: Lists all Python dependencies.env: Stores environment variables (API keys, etc.)
- Welcome Page: Enter your name, age, subject of interest, and skill level
- Lesson Page: Study the AI-generated lesson
- Quiz Page: Test your understanding with interactive quizzes
- Feedback Page: View your results and track your progress
All user data is stored locally in the user_data directory. No personal information is sent to external servers except for the Gemini API for lesson and quiz generation.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini AI for the powerful language model
- Streamlit for the easy-to-use web framework
- All open-source contributors
Contributions are welcome! Please feel free to submit a Pull Request.