Skip to content

pAIr - AI-Powered MSME Compliance & Government Scheme Navigator | Code Unnati Innovation Marathon 4.0

Notifications You must be signed in to change notification settings

stablephisher/pAIr-764

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pAIr โ€” Policy AI Regulator

Autonomous Regulatory & Sustainability Intelligence Companion for MSMEs

๐Ÿ† Code Unnati Innovation Marathon 4.0

"Always in pAIr with your business."

Python Gemini React SAP License

Organized by SAP, Edunet Foundation & Telangana Academy for Skill and Knowledge

pAIr reduces compliance uncertainty by 70%, saves 8+ hours per month per MSME, prevents penalty losses worth lakhs, and unlocks crore-level government scheme benefits โ€” all in the business owner's own language.


๐Ÿ‘ฅ Team pAIr - 13494

Name Role
Shiva Ganesh Talikota Team Lead and AI systems & Product Architect
Syeda Sanobar Ali Backend Developer
Geethika Kudipudi Frontend Developer
Dinesh Nanam Documentation
Harsha Vardhan Reddy Mallela AI pipeline & Model engineering

๐Ÿ”ฅ Impact at a Glance

Metric Impact
โฑ๏ธ Time Saved 8+ hours/month per MSME (16ร— faster than manual)
๐Ÿ’ฐ Money Saved โ‚น59,400/year in consulting costs per business
๐Ÿ›ก๏ธ Risk Reduced 70% reduction in compliance uncertainty
๐ŸŒฟ COโ‚‚ Prevented 126 kg COโ‚‚/year per MSME (paperless + travel-free)
๐Ÿ“‹ Schemes Unlocked Up to โ‚น5 crore in government financial support
๐ŸŒ Accessibility 15+ Indian languages for 63 million MSMEs

๐ŸŽฏ Problem Statement

GRC (Governance, Risk & Compliance) for India's 63 Million MSMEs

Micro, Small and Medium Enterprises (MSMEs) are the backbone of India's economy, yet their owners โ€” often non-legal and non-technical โ€” struggle to navigate the overwhelming landscape of government policies, compliance requirements, subsidies, and schemes. Policy documents are written in complex legal language, scattered across multiple government portals, and frequently updated, making it nearly impossible for a small business owner to stay compliant or discover schemes they are eligible for. Missing a compliance deadline can result in heavy penalties, and missing a scheme means losing out on crore-level financial support.

pAIr โ€” Policy AI Regulator โ€” solves this by deploying an autonomous multi-agent AI system that:

Feature Description
๐Ÿ“„ Ingesting Business documents and policy PDFs
๐Ÿง  Reasoning Eligibility for schemes (CGTMSE, PMEGP, MUDRA)
๐Ÿ“‹ Planning Compliance roadmaps with deadlines
โœ๏ธ Executing Application drafts and checklists
โœ… Verifying Results for accuracy and confidence
๐Ÿ’ฌ Explaining Everything in simple, jargon-free language

๐Ÿ—๏ธ Architecture

Multi-Agent System with Scoring Pipeline (v3.0)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                         FRONTEND (React 18 + Vite)                   โ”‚
โ”‚  Firebase Auth โ†’ OnboardingWizard โ†’ Dashboard (Risk/Sustain/ROI)    โ”‚
โ”‚  ResultsView (Full Report) โ†’ 15+ Language Translation               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                             โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     FastAPI Backend (Python 3.11)                     โ”‚
โ”‚  Auth โ€ข Onboarding โ€ข Analyze โ€ข Scoring โ€ข History โ€ข Translate โ€ข DB   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                             โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    ORCHESTRATOR (7-Stage Pipeline)                    โ”‚
โ”‚                                                                      โ”‚
โ”‚   1. INGESTION  โ”€โ”€โ–ถ PDF โ†’ text extraction                           โ”‚
โ”‚   2. REASONING  โ”€โ”€โ–ถ Gemini: extract obligations, penalties          โ”‚
โ”‚   3. PLANNING   โ”€โ”€โ–ถ Gemini: compliance action plan                  โ”‚
โ”‚   4. EXECUTION  โ”€โ”€โ–ถ Scheme matching (CGTMSE, PMEGP, MUDRA...)      โ”‚
โ”‚   5. VERIFICATION โ–ถ Quality validation + confidence scoring         โ”‚
โ”‚   6. EXPLANATION โ”€โ”€โ–ถ Human-readable summaries                       โ”‚
โ”‚   7. SCORING    โ”€โ”€โ–ถ Risk + Sustainability + Profitability + Ethics  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”‚                  โ”‚                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Scoring Suite  โ”‚ โ”‚ Policy Engine   โ”‚ โ”‚ Database Layer   โ”‚
โ”‚ Risk (0-100)    โ”‚ โ”‚ Tavily Search   โ”‚ โ”‚ Firestore        โ”‚
โ”‚ Sustainability  โ”‚ โ”‚ Serper Backup   โ”‚ โ”‚ (+ JSON fallback)โ”‚
โ”‚ ROI / Profit    โ”‚ โ”‚ FAISS Vectors   โ”‚ โ”‚ User profiles    โ”‚
โ”‚ Ethics & Bias   โ”‚ โ”‚ Async Scraper   โ”‚ โ”‚ Analysis history โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Agent Roles

Agent File Function
Orchestrator orchestrator.py Central state management, 7-stage pipeline coordination
Ingestion ingestion_agent.py PDF parsing (PyPDF2 + pdfplumber fallback)
Reasoning reasoning_agent.py Gemini 2.5 Flash semantic analysis
Planning planning_agent.py Compliance roadmaps with deadlines
Execution execution_agent.py Scheme matching, forms, checklists
Verification verification_agent.py Quality assurance, confidence scoring
Explanation explanation_agent.py Plain English / regional language summaries

Scoring Engines (v3.0)

Engine Output Key Metrics
Compliance Risk Score 0-100 Severity ร— Penalty ร— Deadline ร— Frequency
Sustainability Grade A+ to D Paper saved, COโ‚‚ reduced, SDG alignment
Profitability ROI Multiplier Penalty avoidance, scheme benefits, cost savings
Ethical AI Governance Report Transparency cards, escalation alerts, bias checks

๐Ÿš€ Tech Stack

Component Technology
Backend Python 3.11 + FastAPI
AI Model Google Gemini 2.5 Flash (primary), 2.0 Flash Lite (fallback)
Embeddings Gemini text-embedding-004 (768-dim)
Frontend React 18 + Vite + TailwindCSS + Lucide Icons
Auth Firebase Authentication (Google OAuth)
Database Google Cloud Firestore (+ JSON fallback)
Vector DB FAISS (Facebook AI Similarity Search)
Search APIs Tavily API (primary) + Serper.dev (fallback)
PDF Processing PyPDF2, pdfplumber
Deployment Docker (multi-stage) / Google Cloud Run / Vercel

๐Ÿ“ฆ Supported Government Schemes

Scheme Full Name Benefit
CGTMSE Credit Guarantee Fund Trust Collateral-free loans up to โ‚น5 crore
PMEGP PM Employment Generation Programme Up to 35% subsidy for new units
MUDRA Pradhan Mantri MUDRA Yojana Micro credit up to โ‚น10 lakhs
Stand Up India For SC/ST/Women Loans โ‚น10 lakh - โ‚น1 crore
Udyam MSME Registration Free registration, gateway to schemes

๐Ÿƒ Quick Start Guide

Prerequisites

Step 1: Clone the Repository

git clone https://github.com/stablephisher/pAIr-764.git
cd pAIr-764

Step 2: Set Up Backend

# Navigate to backend
cd backend

# Install Python dependencies
pip install -r requirements.txt

# Set your Gemini API Key (PowerShell)
$env:GEMINI_API_KEY="your-api-key-here"

# Start the backend server
python main.py

Expected output:

==================================================
โœ… BACKEND RESTARTED SUCCESSFULLY
๐Ÿ”‘ LOADED API KEY: ******your-key
โœ… ACTIVE MODELS: Gemini 2.5 Flash, 2.0 Flash-Lite
==================================================
๐Ÿ“ก Monitoring started in: backend/monitored_policies
INFO:     Uvicorn running on http://0.0.0.0:8000

Step 3: Set Up Frontend (New Terminal)

# Navigate to frontend
cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

Expected output:

VITE v5.4.21  ready in 994 ms

โžœ  Local:   http://localhost:5173/
โžœ  Network: use --host to expose

Step 4: Open the Application

๐ŸŒ Open your browser: http://localhost:5173


๐Ÿ“‹ How to Use

1. Upload a Policy Document

  1. Click "Select PDF File" or drag & drop a PDF
  2. Click "๐Ÿš€ Analyze Policy"
  3. Wait for the multi-agent pipeline to process

2. View Analysis Results

The system will display:

  • Policy Metadata - Name, authority, dates
  • Risk Assessment - HIGH / MEDIUM / LOW
  • Obligations - What you must do
  • Penalties - What happens if you don't comply
  • Action Plan - Step-by-step compliance roadmap

3. Translate to Regional Languages

Click the ๐ŸŒ language toggle to translate results to:

  • Hindi, Tamil, Telugu, Kannada, Malayalam
  • Bengali, Marathi, Gujarati, Punjabi
  • And 6 more Indian languages

4. Autonomous Monitoring

Drop PDFs into backend/monitored_policies/ folder:

  • The system automatically detects new files
  • Triggers analysis without user action
  • Results appear in the history sidebar

๐Ÿ”ง Configuration

Environment Variables

Variable Description Required
GEMINI_API_KEY Your Gemini API key โœ… Yes
FIREBASE_CREDENTIALS Path to Firebase service account JSON Optional
FIREBASE_CREDENTIALS_JSON Inline Firebase credentials JSON Optional
TAVILY_API_KEY Tavily search API key Optional
SERPER_API_KEY Serper.dev fallback API key Optional
DEMO_MODE Set to TRUE for demo without API Optional
PORT Backend port (default: 8000) Optional

Setting API Key

PowerShell:

$env:GEMINI_API_KEY="your-key-here"

Command Prompt:

set GEMINI_API_KEY=your-key-here

Linux/Mac:

export GEMINI_API_KEY="your-key-here"

๐Ÿณ Docker Deployment

Build and Run

# Build image
docker build -t pair-msme .

# Run with API key
docker run -p 8000:8000 -e GEMINI_API_KEY=your-key pair-msme

# Run in demo mode (no API key needed)
docker run -p 8000:8000 -e DEMO_MODE=TRUE pair-msme

Docker Compose (Full Stack)

GEMINI_API_KEY=your-key docker-compose up

โ˜๏ธ Google Cloud Run Deployment

Windows PowerShell

$env:GCP_PROJECT_ID="your-project"
$env:GEMINI_API_KEY="your-key"
.\deploy_to_cloud_run.ps1

Linux/Mac

export GCP_PROJECT_ID=your-project
export GEMINI_API_KEY=your-key
./deploy.sh

๐ŸŽฎ Demo Mode

Run without a Gemini API key to see a deterministic walkthrough:

$env:DEMO_MODE="TRUE"
python backend/main.py

Demo showcases:

  • Women-owned Micro Enterprise profile
  • CGTMSE policy analysis
  • Eligibility for 4 schemes
  • Full compliance roadmap

๐Ÿ“ Project Structure

pAIr-AG/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ agents/                 # Multi-agent system
โ”‚   โ”‚   โ”œโ”€โ”€ orchestrator.py     # 7-stage pipeline coordinator
โ”‚   โ”‚   โ”œโ”€โ”€ ingestion_agent.py  # PDF โ†’ Text
โ”‚   โ”‚   โ”œโ”€โ”€ reasoning_agent.py  # Gemini analysis
โ”‚   โ”‚   โ”œโ”€โ”€ planning_agent.py   # Roadmap generation
โ”‚   โ”‚   โ”œโ”€โ”€ execution_agent.py  # Scheme matching
โ”‚   โ”‚   โ”œโ”€โ”€ verification_agent.py # QA & confidence
โ”‚   โ”‚   โ””โ”€โ”€ explanation_agent.py  # Plain English
โ”‚   โ”œโ”€โ”€ auth/                   # Firebase Authentication
โ”‚   โ”‚   โ”œโ”€โ”€ firebase_auth.py    # JWT verification, Google-only OAuth
โ”‚   โ”‚   โ””โ”€โ”€ middleware.py       # Rate limiting, auth headers
โ”‚   โ”œโ”€โ”€ onboarding/             # Adaptive Questionnaire
โ”‚   โ”‚   โ”œโ”€โ”€ questions.json      # 15-node decision tree
โ”‚   โ”‚   โ”œโ”€โ”€ decision_tree.py    # Stateless onboarding engine
โ”‚   โ”‚   โ””โ”€โ”€ profile_generator.py # Gemini-powered profile enrichment
โ”‚   โ”œโ”€โ”€ scoring/                # Intelligence Engines
โ”‚   โ”‚   โ”œโ”€โ”€ compliance_risk.py  # Multi-factor risk scoring (0-100)
โ”‚   โ”‚   โ”œโ”€โ”€ sustainability.py   # Green score + SDG alignment
โ”‚   โ”‚   โ””โ”€โ”€ profitability.py    # ROI optimizer + scheme benefits
โ”‚   โ”œโ”€โ”€ ethics/                 # AI Governance
โ”‚   โ”‚   โ””โ”€โ”€ framework.py        # Transparency, escalation, bias detection
โ”‚   โ”œโ”€โ”€ policy/                 # Real-time Policy Discovery
โ”‚   โ”‚   โ”œโ”€โ”€ scraper.py          # Async aiohttp scraper
โ”‚   โ”‚   โ”œโ”€โ”€ search_api.py       # Tavily + Serper integration
โ”‚   โ”‚   โ”œโ”€โ”€ vector_store.py     # FAISS semantic search
โ”‚   โ”‚   โ””โ”€โ”€ embeddings.py       # Gemini text-embedding-004
โ”‚   โ”œโ”€โ”€ db/                     # Database Layer
โ”‚   โ”‚   โ””โ”€โ”€ firestore.py        # Firestore + JSON fallback
โ”‚   โ”œโ”€โ”€ main.py                 # FastAPI server (v3.0)
โ”‚   โ”œโ”€โ”€ config.py               # Centralized configuration
โ”‚   โ”œโ”€โ”€ schemas.py              # Pydantic models
โ”‚   โ”œโ”€โ”€ schemes.py              # Government schemes DB
โ”‚   โ”œโ”€โ”€ demo_data.py            # Demo mode data
โ”‚   โ”œโ”€โ”€ monitored_policies/     # Auto-detection folder
โ”‚   โ””โ”€โ”€ requirements.txt
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ App.jsx             # Main app with auth + onboarding
โ”‚   โ”‚   โ”œโ”€โ”€ firebase.js         # Firebase config + Google auth
โ”‚   โ”‚   โ””โ”€โ”€ components/
โ”‚   โ”‚       โ”œโ”€โ”€ Dashboard.jsx   # Risk gauge, green score, ROI, ethics
โ”‚   โ”‚       โ”œโ”€โ”€ OnboardingWizard.jsx # Adaptive questionnaire UI
โ”‚   โ”‚       โ”œโ”€โ”€ Sidebar.jsx     # History panel
โ”‚   โ”‚       โ”œโ”€โ”€ ResultsView.jsx # Full analysis report
โ”‚   โ”‚       โ””โ”€โ”€ ProcessingEngine.jsx
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ vite.config.js
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ architecture.md         # Detailed system architecture
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ test_client.py          # API test client
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ deploy.sh                   # Cloud Run (Linux)
โ”œโ”€โ”€ deploy_to_cloud_run.ps1     # Cloud Run (Windows)
โ”œโ”€โ”€ run_demo.bat                # Local demo launcher
โ””โ”€โ”€ README.md

๐Ÿ”Œ API Endpoints

Endpoint Method Description
/api/health GET Health check + version info
/api/auth/verify POST Verify Firebase JWT token
/api/onboarding/start POST Get first onboarding question
/api/onboarding/answer POST Submit answer, get next question
/api/onboarding/profile POST Generate enriched business profile
/api/analyze POST Full policy analysis pipeline
/api/scoring/risk POST Standalone compliance risk scoring
/api/scoring/sustainability POST Standalone sustainability scoring
/api/scoring/profitability POST Standalone profitability optimization
/api/history GET Get analysis history (by user)
/api/translate POST Translate to 15+ Indian languages
/api/sources GET/POST/DELETE Manage URL sources
/api/profile/{uid} GET/POST User business profile

Example: Upload and Analyze

import requests

files = {'file': open('policy.pdf', 'rb')}
response = requests.post('http://localhost:8000/api/analyze', files=files)
print(response.json())

๐Ÿ”„ Modes of Operation

Mode 1: Interactive (User-Driven)

  1. User uploads PDF via UI
  2. Agent swarm processes: Ingest โ†’ Reason โ†’ Plan โ†’ Execute โ†’ Verify โ†’ Explain
  3. Results displayed with debug view

Mode 2: Autonomous (Agent-Driven)

  1. Monitoring Agent watches backend/monitored_policies/
  2. New PDF detected โ†’ Auto-triggers pipeline
  3. Results appear in history (zero user action)

๐Ÿ—ฃ๏ธ Supported Languages

Language Code Native
English en English
Hindi hi เคนเคฟเค‚เคฆเฅ€
Tamil ta เฎคเฎฎเฎฟเฎดเฏ
Telugu te เฐคเฑ†เฐฒเฑเฐ—เฑ
Kannada kn เฒ•เฒจเณเฒจเฒก
Malayalam ml เดฎเดฒเดฏเดพเดณเด‚
Bengali bn เฆฌเฆพเฆ‚เฆฒเฆพ
Marathi mr เคฎเคฐเคพเค เฅ€
Gujarati gu เช—เซเชœเชฐเชพเชคเซ€
Punjabi pa เจชเฉฐเจœเจพเจฌเฉ€
Odia or เฌ“เฌกเฌผเฌฟเฌ†
Assamese as เฆ…เฆธเฆฎเง€เฆฏเฆผเฆพ
Urdu ur ุงุฑุฏูˆ
Sanskrit sa เคธเค‚เคธเฅเค•เฅƒเคคเคฎเฅ
Nepali ne เคจเฅ‡เคชเคพเคฒเฅ€
Konkani kok เค•เฅ‹เค‚เค•เคฃเฅ€

๐ŸŽฏ Key Features

โœ… Multi-Agent Architecture - 7 specialized AI agents in a coordinated pipeline
โœ… Gemini 2.5 Flash - Latest Google AI with automatic fallback
โœ… Firebase Auth - Secure Google-only OAuth with JWT verification
โœ… Adaptive Onboarding - 15-node decision tree for business profiling
โœ… Compliance Risk Scoring - Multi-factor 0-100 risk assessment with severity bands
โœ… Sustainability Engine - Green score, COโ‚‚ reduction, SDG alignment
โœ… Profitability Optimizer - ROI multiplier, penalty avoidance, scheme benefit estimation
โœ… Ethical AI Governance - Transparency cards, escalation alerts, bias detection
โœ… 15+ Languages - Regional language support for accessibility
โœ… MSME-Focused - Built specifically for India's 63 million small businesses
โœ… Scheme Database - CGTMSE, PMEGP, MUDRA, Stand Up India, Udyam, SFURTI
โœ… Real-time Policy Search - Tavily + Serper APIs for live policy discovery
โœ… Vector Search - FAISS with Gemini embeddings for semantic policy matching
โœ… Autonomous Monitoring - Zero-touch policy file watching
โœ… Cloud Firestore - Persistent storage with graceful JSON fallback
โœ… Docker + Cloud Run - Production-ready containerized deployment


๏ฟฝ Social Impact & Innovation

"India has 6.3 crore MSMEs employing over 11 crore people. Most owners lack legal expertise to navigate compliance. pAIr bridges this gap with AI โ€” making government schemes accessible to every entrepreneur, in their own language."

Why This Matters

  • 63 million MSMEs in India struggle with compliance โ€” pAIr automates it
  • 15+ regional languages ensure no business owner is left behind
  • Zero-touch monitoring means policies are tracked automatically
  • Autonomous AI agents eliminate the need for expensive legal consultants
  • Real-world impact โ€” prevents penalties, unlocks government financial support

๐Ÿ“„ License

MIT License โ€” Built for Code Unnati Innovation Marathon 4.0 (2024-25)

Organized by SAP | Edunet Foundation | Telangana Academy for Skill and Knowledge (TASK)


Made with โค๏ธ by Team pAIr

Empowering India's 63 Million MSMEs with AI-Powered Compliance Intelligence

Theme: Data Algorithm in Action โ€” Turning complex government policy data into actionable intelligence for small businesses

About

pAIr - AI-Powered MSME Compliance & Government Scheme Navigator | Code Unnati Innovation Marathon 4.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors