| # ๐ 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 | |