File size: 3,906 Bytes
a3ed50f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | # ๐ QUICK START GUIDE - MVMยฒ
## โก Fastest Way to Get Started
### Step 1: Open Terminal in Project Directory
```bash
cd c:\Users\Varshith Dharmaj\Downloads\major\math_verification_mvp
```
### Step 2: Run the Startup Script
```powershell
.\start.ps1
```
Choose option **2** for quick demo (Dashboard Only)
---
## ๐ What You'll See
1. **Dashboard opens at:** http://localhost:8501
2. **Two input modes:**
- ๐ **Text Input** - Try the pre-filled example
- ๐ท **Image Upload** - Upload a handwritten math problem
3. **Click "Verify Solution"** to see results
---
## ๐งช Testing the System
### Quick Test (No Services Required)
The dashboard will work in demo mode even without microservices running.
### Full Test (All Services)
```powershell
.\start.ps1
```
Choose option **1** - This opens 4 windows:
- OCR Service (Port 8001)
- SymPy Service (Port 8002)
- LLM Service (Port 8003)
- Dashboard (Port 8501)
---
## ๐ฏ Try These Examples
### Example 1: Valid Solution โ
**Problem:** "Janet has 3 apples. She buys 2 more. She gives 1 away."
**Steps:**
```
Janet starts with 3 apples
She buys 2 more: 3 + 2 = 5 apples
She gives 1 away: 5 - 1 = 4 apples
```
**Expected:** VALID with high confidence
---
### Example 2: Error Detection โ
**Problem:** "There are 5 boxes with 8 apples each."
**Steps:**
```
Number of boxes = 5
Apples per box = 8
Total = 5 ร 8 = 45
```
**Expected:** ERROR detected (5 ร 8 = 40, not 45)
---
## ๐ง Prerequisites
### Required (Basic Demo)
- โ
Python 3.10+
- โ
Virtual environment (./start.ps1 creates this automatically)
### Optional (Full Features)
- Tesseract OCR (for image processing)
- Gemini API Key (for LLM reasoning)
---
## ๐ฆ Installing Additional Components
### Tesseract OCR (for Image Mode)
1. Download: https://github.com/tesseract-ocr/tesseract
2. Install and add to PATH
3. Restart terminal
### Gemini API Key (for LLM Features)
1. Get free key: https://ai.google.dev/
2. Copy `.env.template` to `.env`
3. Add: `GEMINI_API_KEY=your_key_here`
---
## ๐ Troubleshooting
### "Module not found"
```powershell
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
```
### "Port already in use"
Close any applications using ports 8001-8003, 8501
### Services not connecting
- Check if all service windows are still open
- Look for error messages in service windows
- Restart the startup script
---
## ๐ What to Expect
### Performance Metrics
- โฑ๏ธ Processing time: 1-5 seconds per problem
- ๐ฏ Accuracy: 68%+ on valid test cases
- ๐ Error detection: 78%+ when errors present
### Features Working
- โ
Text input verification
- โ
Multi-model consensus
- โ
Error detection and reporting
- โ
Confidence scoring
- โ
Agreement analysis
### Image Input (Requires Tesseract)
- ๐ท Handwritten math problems
- ๐ Printed worksheets
- ๐ผ๏ธ Whiteboard photos
---
## ๐ Research Features Demonstrated
1. **Multimodal Input** - Accept both text and images
2. **Weighted Consensus** - Symbolic (40%), LLM (35%), ML (25%)
3. **OCR-Aware Calibration** - Novel uncertainty propagation
4. **Real-time Processing** - <5 second response time
---
## ๐ Next Steps
1. โ
**Test basic functionality** - Run the text examples
2. โก **Try image upload** - If you have Tesseract installed
3. ๐งช **Run automated tests** - `python tests/test_system.py`
4. ๐ **Collect data** - Test with your own math problems
5. ๐จ **Customize** - Modify weights, add more patterns
---
## ๐ Need Help?
Check the full README.md for:
- Detailed architecture
- API documentation
- Advanced configuration
- Deployment options
---
**MVMยฒ** - Making Mathematical Verification Multimodal
VNR VJIET Major Project 2025
|