#Ai Study Coach
AI Study Coach is an app that turns notes or pdfs into quizzes it uses Open AI's API for quiz generation and Streamlit for the UI.
-Paste notes or upload PDF -Generate quizzes with Easy, Medium, or Hard difficulty
- RAG-based quiz generation
- Reranking of retrieved chunks
- duplicate-question detection
- AI grading and feedback
- Retry incorrect questions
- Weak-topic practice
- Accuracy analytics
Demo: https://youtu.be/UFbRo3OMED0
Quiz Generate From AI:
- User's notes and difficulty are sent to OpenAI API in a promp
- AI generates a quiz from the notes
- Quiz is returned as a JSON, converted to a Python list and then displayed on Streamlit app
Quiz Generation From RAG:
- Notes are split into chunks.
- Each chunk is converted into an embedding.
- The quiz topic is also embedded.
- Cosine similarity retrieves the most relevant chunks.
- A reranker improves the retrieved results.
- The selected context is sent to the OpenAI API to generate the quiz.
- Quiz is returned as a JSON, converted to a Python list and then displayed on Streamlit app
Grade Quiz 1.Answers are graded by AI and used for analytics.
- Python
- Streamlit
- OpenAI API
- OpenAI Embeddings
- Pandas
- scikit-learn
- pypdf
Clone the repository:
git clone YOUR_REPO_URL
cd Ai-study-coachInstall Dependencies:
pip install -r requirements.txtCreate a Streamlit secret File:
.streamlit/secrets.toml
in file put:
OPENAI_API_KEY = "your-openai-api-key"##Run App
streamlit run "app ui/code/App.py"