505 NCERT exercise questions. 4 ways to get help. Zero typing required.
Class 9 & 10 · Step-by-step · 24/7 · Free
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
Most students studying alone get stuck on a question and have no one to ask.
Vedantu / Byjus / Teachoo → show the answer. Done. No explanation.
This app → you choose exactly how much help you need:
Q5. In △ABC, DE∥BC. Find EC.
[💡 Hint] [📖 Steps]
[✅ Answer] [❓ Ask AI]
| Button | What it does |
|---|---|
| 💡 Hint | One nudge. Just the first step. Nothing more. |
| 📖 Steps | The method only — no final answer. |
| ✅ Answer | Full step-by-step solution. |
| ❓ Ask AI | Pick exactly where you're stuck — no typing needed. |
When you tap ❓ Ask AI:
Where are you stuck?
[🔢 No idea where to start]
[➡️ Stuck in the middle]
[❌ My answer is different]
[🤔 Don't understand the concept]
[📐 Show a similar easier example]
No typing. One tap. AI gives exactly what you need.
After every response:
💬 Did that help?
[✅ Yes, got it!] [🔁 Explain differently]
[❓ I have a doubt] [✅ Full Answer]
If you didn't get it — AI explains using a completely different approach.
Real-life analogy. Simpler method. Different example.
Pick any NCERT exercise question and get help your way.
Sidebar:
① Pick class (Class 9 or 10)
② Pick chapter (Ch1 · Real Numbers...)
③ Pick exercise (ex1.1, ex1.2...)
→ Questions appear with 4 help buttons
Class 9 — All 12 chapters, 223 questions across 41 exercises
Class 10 — All 14 chapters, 282 questions across 46 exercises
Total — 505 questions, all from official NCERT textbook
- No typing required — all help options are buttons
- Active question tracking — always know which question you're on
- Replace not stack — clicking a new button replaces the previous answer, chat stays clean
- Follow-up built in — "Did that help?" appears after every response
New students see 3 clear cards explaining exactly how to use the app:
- 📚 Practice NCERT → Use sidebar
- 💬 Ask Anything → Type below
- 📷 Scan Problem → Use sidebar
Every answer looks like a teacher writing on a board — not an AI typing an essay.
Before (v2):
The Commutative Property of Addition states that when we add numbers,
the order does not matter. This means that 3+4 gives the same result...
After (v3):
Step 1 — Does order matter in addition?
3 + 4 = 7
4 + 3 = 7 ← same answer!
✓ Commutative Property.
✅ Answer: 3+4 = 4+3 = 7
Key thing: this works for any two numbers!
One rule drives every answer: if a student can't follow in 5 seconds — it's wrong.
| Feature | Description |
|---|---|
| 📚 NCERT Quiz Mode | 505 questions, Class 9 & 10, pick your help level |
| 🧮 Step-by-step solutions | Whiteboard style, one idea per line |
| 💡 4 help modes | Hint / Steps / Answer / Ask AI |
| 🤔 Stuck menu | 5 options for where you're stuck — no typing |
| 🔁 Follow-up | AI adapts if you didn't understand |
| 📈 Interactive graphs | Zoom, pan, hover — powered by Plotly |
| ⚡ Symbolic compute | Exact derivatives, integrals, equation solving |
| 📷 Camera scan | Photo any handwritten problem — auto solved |
| 📄 PDF upload | Upload textbook pages and ask questions |
| 🌗 Dark/light mode | Toggle anytime |
| 🔥 Daily streak | Track your practice days |
| Layer | Technology |
|---|---|
| LLM | LLaMA 3.3 70B via Groq API |
| RAG Pipeline | LangChain + ChromaDB |
| Embeddings | HuggingFace sentence-transformers |
| Symbolic Math | SymPy |
| Graphs | Plotly |
| OCR | Tesseract + pytesseract |
| Memory | MongoDB Atlas |
| UI | Streamlit |
| Language | Python 3.11 |
python3.11 --version # Need 3.11+
pip install -r requirements.txt# 1. Clone the repo
git clone https://github.com/sarika-stack23/AdvMAthAI.git
cd AdvMAthAI
# 2. Create .env file
echo "GROQ_API_KEY=your_key_here" > .env
# 3. Build knowledge base
python3.11 main.py --rebuild
# 4. Run
python3.11 -m streamlit run main.pyGet your free Groq API key at console.groq.com
python3.11 -m streamlit run main.py # Launch UI
python3.11 main.py --setup # Build knowledge base
python3.11 main.py --rebuild # Force rebuild knowledge base
python3.11 main.py --test # Run unit tests
python3.11 main.py --eval # Evaluate RAG pipeline| Problem | Fix |
|---|---|
| No answer shown | Check Groq API key in .env or Streamlit Cloud Secrets |
| Class 10 shows no exercises | Make sure you're using the latest knowledge_base.py (v3.2) |
| Daily token limit | App auto-switches model — just keep using it |
| ChromaDB error | Delete chroma_db/ folder and run --rebuild |
| Slow first load | Normal — embedding model downloads once, then instant |
| knowledge_base import error | Make sure knowledge_base.py is in same folder as main.py |
| Plotly graph not showing | Run pip install plotly and add plotly>=5.0.0 to requirements.txt |
| OCR / camera scan not working | Run pip install pytesseract then brew install tesseract (Mac) |
| App crashes on startup | Run with python3.11 -m streamlit run main.py |
- ✅ NCERT Quiz Mode — 505 questions, Class 9 & 10, all exercises
- ✅ 4 help modes — Hint / Steps / Answer / Ask AI
- ✅ Stuck menu — 5 options, no typing required
- ✅ Follow-up system — "Did that help?" after every response
- ✅ Replace not stack — new button replaces previous answer
- ✅ Active question card — always visible, never lose track
- ✅ Welcome screen — 3-card guide for new students
- ✅ Smart cache — quiz map rebuilds only when knowledge base changes
- ✅ HTML fix — no more
</div>leaking into chat
- ✅ Whiteboard-style answers — short lines, one idea per line
- ✅ 5-second rule — if student can't follow in 5 seconds, AI writes shorter
- ✅ Share answer button — one-click to copy full solution
- ✅ Plotly interactive graphs — zoom/pan/hover/download
- ✅ Streak counter — daily problems solved + 🔥 streak
- ✅ Mobile tweaks — bigger touch targets, responsive layout
- ✅ Complete NCERT coverage — 104 chapters from Class 6 to Class 12
- ✅ JEE Advanced — 8 topic groups, competition-level math
- ✅ 118 RAG documents — 20x more knowledge than v1
- ✅ 3,500+ ChromaDB chunks — improved retrieval accuracy
- ✅ Metadata-rich documents — tagged with class, chapter, topic, difficulty
- ✅ PDF upload — ask questions about any document
- ✅ Camera scan — photo any handwritten problem
- ✅ Dark/light mode toggle
- ✅ Edit any question mid-conversation
- 🎉 Full RAG pipeline with ChromaDB / FAISS
- 🎉 Streamlit UI with dark/light theme
- 🎉 Symbolic math via SymPy
- 🎉 Graph plotter
- 🎉 MongoDB chat memory
Now v3.2 — NCERT Quiz Mode (505 questions) ✅
Next v4.0 — Firebase Auth (student login + profiles)
Then v4.1 — Progress tracking (questions attempted/solved)
Then v5.0 — Class 11 & 12 exercises
Then v6.0 — Mobile app (React Native)
Contributions are welcome!
- Fork the repo
- Create a branch:
git checkout -b fix/your-fix - Commit:
git commit -m "fix: description" - Push:
git push origin fix/your-fix - Open a Pull Request
MIT License — free to use, modify, and distribute.

