YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
MaintAI β Equipment Troubleshooting Assistant
Client Demo Β· Advanced Multimodal RAG Β· Industry Standard
AI-powered assistant that lets maintenance technicians ask technical questions and get accurate, cited answers from equipment manuals. Supports scanned PDFs, troubleshooting photos, and global web fallback.
π Features
- Multimodal Analysis: Upload photos of machine errors or screens for instant troubleshooting context.
- Role-Based Access (RBAC): Secure Login for Admins (Uploads/Deletes) and Technicians (Chat-only).
- Multilingual OCR: Supports 12+ languages (ZH, JA, KO, EN, HI, etc.) via PaddleOCR.
- Global Search Fallback: If manuals don't have the answer, one-click search queries the web for industrial solutions.
- Hyper-Fast Inference: Running on Llama 3.3 70B via Groq's LPU engine for near-instant responses.
π Technology Stack
| Layer | Technology | Why |
|---|---|---|
| LLM | Groq Β· Llama 3.3 70B | Sub-second inference at industrial scale |
| OCR | PaddleOCR + PyMuPDF | High-precision extraction from diagrams and scanned text |
| Vector DB | ChromaDB | Native, on-premise storage for data privacy |
| Auth | JWT + FastAPI Security | Secure, role-based technician verification |
| Backend | FastAPI (Python) | High-performance async RAG architecture |
| Frontend | React 18 | Modern, responsive dashboard with SSE streaming |
π Deployment Guide
Option 1: Quick Start (Local)
- Environment: Create a
.envfile from.env.exampleand add yourGROQ_API_KEY. - Dependencies:
# Backend cd backend && pip install -r requirements.txt python -m uvicorn app.main:app --reload # Frontend (Separate terminal) cd frontend && npm install && npm run dev
Option 2: Docker / Hugging Face Spaces
This project includes a unified Dockerfile in the root and is pre-configured for Hugging Face Spaces.
docker build -t maintai .
docker run -p 7860:7860 --env-file .env maintai
π‘ Demo Flow
- Login: Choose a role.
- Admin:
admin/admin(Can upload/edit library) - Technician:
technician/tech(Secure chat access)
- Admin:
- Upload: Add an equipment manual in the Manuals tab.
- Chat: Ask a question or paste a screenshot.
- Web Search: If the manual is insufficient, click the Globe Icon to fetch live maintenance data.
π Project Structure
maintai-demo/
βββ Dockerfile Unified multi-stage build (HF Ready)
βββ .gitignore Protects project secrets & local DB
βββ backend/
β βββ requirements.txt RAG, OCR, & Search dependencies
β βββ app/
β βββ services/auth.py JWT & Role-based logic
β βββ services/rag.py ChromaDB + Groq + Web Fallback
β βββ main.py FastAPI Entrypoint (serves Static UI)
βββ frontend/
βββ src/
βββ App.jsx Multimodal Dashboard UI
βββ lib/api.js Auth-aware API client
π Security & Privacy
- Local Processing: Manuals are stored and indexed locally (ChromaDB); data never leaves your infrastructure except for LLM inference.
- LOTO Warnings: The system is prompted to prioritize safety and Lockout-Tagout protocols.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support