Downloads · 30 days
0
thilak/maint-ai_demo
maint-ai_demo is a machine learning model from thilak. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
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.
Downloads · 30 days
0
Access
Public
Updated Apr 16, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json125 KB · 52%
From the Hugging Face model README
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.
| 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 |
.env file from .env.example and add your GROQ_API_KEY.# 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
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
admin / admin (Can upload/edit library)technician / tech (Secure chat access)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