How harshchi19/smartsure-innov8 works
Main System Components
a) Frontend Layer:
• Main Application Interface (Streamlit-based)
• Multiple Pages/Modules:
• Customer Support Interface
• Fitness Score Calculator
• Base Plan Recommendations
• Custom Plan Generator
• Business Dashboard
b) AI/ML Service Layer:
• Mistral & Hugging Face API Integration
• ML Model Services:
• Random Forest (Fitness Score)
• KNN (Base Plan Recommendations)
• Neural Network (Custom Plan Generator)
c) Data Layer:
• File-based Storage:
• CSV files (various datasets)
• Excel files (coordinates, descriptive statistics)
• SQL Database (noted in resources/database.sql)
[Frontend Layer (Streamlit UI)]
• ↕
[AI/ML Services Layer]
• ↕
[Data Layer]
Component Relationships
Key interactions:
• User Input → Frontend → AI Services
• AI Services → Data Layer (for training/inference)
• Data Layer → AI Services → Frontend (for results)
b) API Interactions:
• External API calls to Mistral/Hugging Face
• Internal API routes between components
Specific Elements
a) Frontend Components:
[Main App (main.py)]
• ↓
[Feature Modules]
• AI Customer Support
• Fitness Calculator
• Plan Recommendations
• Custom Plan Generator
• Business Dashboard
b) AI/ML Services:
[ML Model Services]
• Random Forest (fitness_score_page.py)
• KNN (choose_base_plans_page.py)
• Neural Network (make_your_own_plan_page.py)
c) Data Storage:
[Data Sources]
• CSV Files
• Excel Files
• SQL Database
Technical Details to Highlight
• Streamlit framework for UI
• Python-based backend services
• ML model implementations
• Data processing pipelines
• External API integrations