Skip to content

FabPilot – AI Maintenance Copilot for Factories

AI agent that diagnoses machine faults from sensor data and maintenance manuals, cites its evidence, and drafts work orders that a person approves.

AILLMFull-StackAI AgentsLangGraphMCPRAGPythonFastAPINext.jsPostgreSQL
86%
Root-cause accuracy
0/9
False alarms on healthy machines
$0
Running cost (free LLMs)

Links

FabPilot – AI Maintenance Copilot for Factories cover

Problem

When a machine stops at night, a maintenance engineer has to dig through sensor charts, alarm logs, manuals and old incident reports before the real repair can begin. And not every alarm is a real fault: a drifting sensor can look exactly like an overheating machine.

Solution

Built a LangGraph agent that pulls sensor readings, alarms and anomalies (TimescaleDB) and searches manuals, SOPs and past incidents (hybrid RAG on pgvector + full-text) through two MCP servers. It proposes a root cause in which every claim points to measured data and every source is cited, rules out the alternatives, and drafts a work order from the matching procedure. Nothing is saved until a person approves it (human-in-the-loop with a Postgres checkpointer). An LLM gateway routes free models with fallback, retries, caching and cost logging. A Next.js dashboard streams the agent's steps live (SSE).

View the UI screens

Impact

Measured on 51 simulated fault scenarios with known root causes: 86% root-cause accuracy, no fault invented on a healthy machine, every citation verifiably retrieved. A model comparison with exact McNemar tests showed accuracy alone can't separate three free models; their error profiles decided which one stays. Runs on free LLMs, with the eval suite and a Kubernetes install test in CI.

Tech Stack

Python, LangGraph, MCP (FastMCP), FastAPI, Pydantic, PostgreSQL, TimescaleDB, pgvector, Next.js, TypeScript, Tailwind, Groq, OpenRouter, Docker, Helm, Kubernetes, GitHub Actions.

Related projects