DEV Community

Priyanshu Kumar
Priyanshu Kumar

Posted on

ForgeMind: Building a Memory-Backed Factory Troubleshooting System

By Bhupathi Mahesh Varun Kumar · Hindsight / AI / memory

When we started building ForgeMind, we wanted to solve a specific problem in factory troubleshooting: an AI system can generate a convincing explanation, but it is difficult to know whether that explanation came from the current incident, a previous factory incident, or the model's own reasoning.

We designed ForgeMind around a simple principle:

Historical experience should remain identifiable when it reaches the model.

That led us to combine Hindsight memory, a backend API layer, an investigation UI, analysis logic, integration testing, and a separate research and debugging workflow.

The result is a prototype where an incident can be analyzed against historical experience, recommendations can carry evidence identifiers, and confirmed outcomes can become future memory.

The architecture we built

The system has several layers.

The frontend collects factory incident information such as the machine, issue, error code, severity, and symptoms. The backend receives that information through FastAPI and forwards analysis requests to the M1 analysis service.

M1 is responsible for interacting with Hindsight. It can recall relevant historical incidents and reflect on them before the analysis stage combines historical evidence with the current incident.

The overall flow is:


text
Factory Incident
      ↓
Frontend
      ↓
FastAPI Backend
      ↓
M1 Analysis
      ↓
Hindsight Recall
      ↓
Historical Evidence
      ↓
AI Analysis
      ↓
Recommendations
      ↓
Operator Resolution
      ↓
Outcome Retained
      ↓
Future Hindsight Recall
Enter fullscreen mode Exit fullscreen mode

Top comments (0)