Training

How it works, no smoke

This page is the training part. If you only want to know what it does, go to Use cases. If you want to understand why it works, keep reading.

01

What an AI assistant (really) is

At the centre, the language model: it reasons and writes, that's all. Around it, what makes it useful. Context: documents and data. Tools: APIs, SQL, OPC UA. Memory: the conversation and the history. Guardrails: permissions, limits and audit. Interface: chat, HMI, Teams or voice.

Contextdocuments and dataToolsAPIs · SQL · OPC UAMemoryconversation and historyGuardrailspermissions · limits · auditInterfacechat · HMI · Teams · voiceModelreasons and writes

The model is the most famous part, but not the most important one. A mediocre model with good context and good tools always beats a brilliant model that doesn't know where it is.

02

From classic RAG to agentic RAG

RAG is an ugly name for a simple idea: before answering, look it up. Classic RAG is a straight path: question, index lookup, answer. For looking up a manual it works beautifully.

The problem shows up when the answer isn't in any single document but scattered across several places. “Why did the line stop last night?” isn't in a PDF: it's in the historian, the alarm list and a ticket someone closed in March.

Agentic RAG plans first: it breaks the question into steps and decides which source to query at each one. Then it verifies: is there evidence? If not, it queries again. It's what a senior technician does: checks the manual, checks the history, and if it doesn't add up, checks again.

Classic RAGQuestionIndex lookupWritesAgentic RAGQuestionPlansbreaks into stepsdocumentsdataAPIsQueriesVerifiesevidence?no → query againyesAnswerswith citations
scroll →
Classic RAGAgentic RAG
Best forFAQ, looking up a manualCross-referencing, diagnosing
Model calls1Several
Cost and latencyLowMedium
Rule of thumbStart hereMove here when the answer requires cross-referencing

Rule of thumb: start classic where the question is simple and go agentic where the answer requires cross-referencing. You don't need an agent to look up a torque value.

03

An ordinary Monday: line 3's OEE

Why did line 3's OEE drop on the night shift this week?
1

Translates the question into queries

text → GraphQL / SQL

query { oee(line: 3) }
2

Runs and cross-references

OEE, micro-stops, alarms, work orders

Alarms 23:10–05:40
3

Correlates and detects the pattern

station 4 after every changeover

OEE_L3_turno
4

Explains it with evidence

in operator language

SOP-114.pdf p.6

OEE by shift

Morning78 %Afternoon76 %Night61 %

Micro-stops per station · night shift

4St. 16St. 25St. 323St. 43St. 5

Illustrative data · the assistant builds these views from the queries; they are not pre-made.

Nobody designed that chart beforehand. The shift report someone writes half-asleep at six in the morning will soon be drafted by the assistant and validated by the person. Value shifts from knowing how to pull the data to knowing how to ask the question.

04

What it feeds on

Six families of sources you already have. What's new isn't the list: it's crossing them. The magic is the moment the assistant pairs a historian trend with a seven-month-old ticket and tells you: “this happened before, and this is how it was fixed.”

Real timeOPC UA · MQTTHistoryHistorian · SQLBusiness systemsERP · MES · CMMSKnowledgeSOP · P&ID · PDFService and supportJira · ZendeskAPIs and integrationsREST · GraphQLindex · agents · permissions
scroll →
05

Before the model

Four conditions that come before choosing any LLM. Many AI projects fail because they start with the icing.

  • Synchronised data: same time base and batch context, with a plant data model.
  • Inherited permissions: the assistant sees what the user sees.
  • A network that allows it: reads from the DMZ or IT level, never from the fieldbus.
  • Data quality: without it there is no reliable root cause.

The model is the icing. This is the cake.