GemMath AI is an intelligent Streamlit-powered assistant that solves numeric and symbolic math problems, handles logical reasoning, and performs real-time Wikipedia searches — all powered by Google Gemma 2 via Groq, LangChain, and SymPy.
🔍 Built for learners, engineers, and curious minds who want clear step-by-step answers to complex math and reasoning problems — right in their browser.
✅ Numeric & Symbolic Math Solver
- Handles calculations like
12 + 5 * 3 - Supports symbolic operations:
differentiate,integrate,expand,solve,simplify,limit - Returns LaTeX-rendered step-by-step results using
SymPy
🧠 Logical Reasoning Engine
- Multi-step reasoning for logic problems like:
"John is taller than Alice. Alice is taller than Bob. Who is the tallest?"
📚 Wikipedia Search Agent
- Instant access to encyclopedic knowledge through LangChain + Wikipedia API
🌐 Beautiful Streamlit Interface
- Clean and intuitive UI with tab-based navigation
🔐 Groq API Integration
- Runs Gemma 2 (Gemma2-9b-It) blazing-fast via Groq's LLM inference
| Layer | Tools & Frameworks |
|---|---|
| 💡 LLM Agent | LangChain |
| ⚙️ Backend | Python, SymPy, Groq API |
| 🧮 LLM Model | Google Gemma 2 (Gemma2-9b-It) via Groq |
| 🖼️ Frontend | Streamlit |
| 📚 Knowledge | Wikipedia API |
(Replace with your hosted app URL)
| Math Solver (Symbolic) | Logical Reasoning |
|---|---|
![]() |
![]() |
# Clone the repo
git clone https://github.com/YOUR-USERNAME/GemMath-AI.git
cd GemMath-AI
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
# Install dependencies
pip install -r requirements.txt
# Run the app
streamlit run app.py
