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