Grounding AI on Plant Data
A maintenance planner at a mid-market injection-molding plant typed a simple question into a slick new AI assistant the corporate IT group had just rolled out: "What is the correct mold-clamp tonnage and barrel temperature for the part we run on press 7?" The answer came back in three confident, well-formatted paragraphs, complete with a torque value for the clamp tie-bar nuts and a barrel-zone temperature profile. It looked exactly like something a senior process engineer would write. There was one problem. Press 7 had been retooled eighteen months earlier to run a different resin, the barrel-temperature numbers belonged to a material the plant had not run since 2023, and the torque value was off by enough to risk cracking a tie-bar. The model had not lied on purpose. It had simply answered from its training, a vast soup of general plastics knowledge scraped off the public internet, because nobody had ever connected it to the one thing that actually knew the truth about press 7: the plant's own setup sheets, its material certificates, the press model book, and the maintenance history. That gap, between what the model imagines and what your plant actually is, is the entire subject of this lesson. The technique that closes it is called grounding, and on a brownfield floor it is the difference between an AI you can trust on the line and a very expensive autocomplete.
Why an Ungrounded Model Is Dangerous on the Floor
A large language model is trained once, on a frozen snapshot of text, and then shipped. It does not know your plant. It has never seen your travelers, your historian tags, your work orders, or the model book for the 1994 press in the corner. When you ask it a question, it does not look anything up. It predicts the most statistically likely next words based on the billions of documents it absorbed during training. For a question about general physics or a common programming pattern, that prediction is often right. For a question about the specific clamp tonnage on your specific press running your specific resin, the model has nothing to draw on except a plausible average of every plastics document it ever read. It will produce an answer that reads beautifully and is grounded in nothing.
This failure mode is what the industry calls a hallucination: a fluent, confident output that is not anchored to any real source. We covered hallucinations as a concept earlier in the program. The point here is sharper. On the floor, an ungrounded answer is not just wrong, it is dangerous, because it arrives wearing the uniform of expertise. The planner in the opening story did not get a vague "I am not sure." He got a torque value to two decimal places. Confidence is not correctness, and the more confident the formatting, the more an exhausted operator on a thin crew is likely to act on it.
Recall the program's spine. Roughly 2 million manufacturing workers need AI reskilling by 2026 against about 500,000 unfilled roles, and 85% of manufacturers say staffing shortages are already hurting product quality. The reader's plant is short three maintenance techs and the best inspector retires in November. That thin, green crew is exactly the crew most likely to trust a confident screen because they do not yet have the twenty years of gut feel to know when the screen is wrong. An ungrounded AI handed to a green crew is a force multiplier for error. A grounded AI handed to that same crew is a knowledge multiplier. Same model, opposite outcome. The variable is grounding.
An ungrounded model does not retrieve your plant's truth, it imagines a plausible average of every plant it ever read. Grounding is how you make it read yours.
What Grounding Actually Means: RAG in Floor Terms
The standard technique for grounding is called RAG, which stands for Retrieval-Augmented Generation. Defined in floor terms, RAG means this: before the model is allowed to answer, the system first retrieves the relevant pages from your own documents and hands them to the model along with the question, with an instruction that says, in effect, "answer using only what is in these pages, and if the answer is not here, say so." The model still writes the answer in fluent language, that is the generation part, but it writes it from your documents instead of from its imagination. Augmented means the question was augmented with real source material before the model ever saw it.
The cleanest analogy is the difference between an open-book exam and a closed-book exam. A bare language model takes a closed-book exam: it answers from memory, and on plant specifics its memory is a generic blur. RAG turns it into an open-book exam where the book is your plant: your setup sheets, your travelers, your CMMS history, your model books, your work instructions. The model is still doing the thinking and the writing, but now it is reading from the correct book before it answers. An open-book exam where the student must cite the page is exactly what you want on the floor, because you can check the citation.
Two acronyms you will live with here. The CMMS is the Computerized Maintenance Management System, the software where work orders, asset records, and maintenance history live. The MES is the Manufacturing Execution System, the layer that tracks what is running, the routing, and the production records on each line. RAG over plant data means the retrieval step reaches into these systems, plus the historian (the time-series database that logs every sensor tag, temperature, pressure, vibration, second by second), plus the document stores that hold specs, drawings, travelers, and model books. The retrieval step finds the handful of relevant passages, and only those passages, plus the question, go to the model.
The three moving parts of a RAG system
The knowledge base. This is your corpus, the collection of source documents and records the system is allowed to read. Setup sheets, travelers, the CMMS work-order history, machine model books, material certs, work instructions, prior 8D reports. The quality of everything downstream is capped by the quality of what you put here. Garbage in, confident garbage out.
The retriever. This is the search engine that, given a question, finds the most relevant chunks from the knowledge base. Modern retrievers do not just match keywords. They convert text into vectors (lists of numbers that capture meaning) so that a question about "the press that cracks tie-bars" can find a maintenance note that said "press 7 tie-bar fatigue" even though the exact words differ. This is called semantic search, and it is why a good retriever can find the right setup sheet even when the operator does not use the document's exact title.
The generator. This is the language model itself, now constrained to answer from the retrieved chunks and instructed to cite them. The generator's job has shrunk from "know everything about plastics" to "read these five passages and answer this one question, with citations." That is a far easier, far safer job, and it is the whole reason grounding works.
The Five Sources That Make a Plant Knowledge Base
The specs, travelers, CMMS, and machine model book are not interchangeable. Each carries a different kind of truth, and a grounded floor AI needs all of them connected because real questions cross between them. Here is what each source is and the specific failure it prevents.
Specs and drawings. The engineering source of truth: dimensions, tolerances, torque values, material callouts, the customer's print. When an operator asks "what is the tolerance on this bore," the answer must come from the controlled drawing, not from a model's average of similar parts. Grounding on the controlled spec is what stops the invented torque value from the opening story. The retrieval must point at the current revision, because an answer from a superseded revision is its own kind of escape.
Travelers and routings. The traveler is the document that follows a part or lot through the process, recording each operation, who ran it, and the in-process results. It is the narrative of what actually happened to this specific lot. Grounding on the traveler lets the AI answer "what operations did lot 4471 see, and did any read out of band" from the real record instead of a guess. This is the source that turns a vague "the part looks bad" into "operation 30 ran 6 degrees hot on the second shift."
CMMS work-order history. Every repair, every PM (preventive maintenance task), every part replaced, every failure logged. This is the plant's maintenance memory. Grounding on the CMMS lets the AI answer "what has gone wrong on this asset before and what fixed it" from the logged history rather than from a generic troubleshooting tree. For a green tech facing a fault they have never seen, this source is the closest thing to having Dave the retiring expert standing beside them, because Dave's saves are often already in those work orders if anyone wrote them down.
The machine model book. The OEM manual, the electrical and pneumatic schematics, the parts list, the maintenance intervals, the alarm-code tables. This is where "what does fault E-117 mean on this press" gets a real answer. Without it, the model invents an alarm meaning that sounds right and is not. The model book is also where the legitimate torque specs and intervals live, so grounding on it is the antidote to fabricated procedures.
The historian. The time-series record of every sensor tag. Temperatures, pressures, vibration, cycle times, flow rates, logged continuously. The historian is the only source that can answer "what was actually happening on the line in the ten minutes before the defect." Grounding a root-cause question on the historian trace, rather than on three operators' memories of a hot afternoon, is the difference between data and folklore. The historian is also the hardest to wire in, because on a brownfield plant nobody has queried it in years and the tag names are a cryptic mess only the controls engineer understands.
A worked example: the cross-source question
Consider a real escape. A customer returns 4,000 housings for a cosmetic flow defect, the kind of containment that can cost more than a month of a training program. The quality engineer asks the grounded AI: "Lot 4471 had a flow defect on the customer return. What changed?" A single-source system fails this question. The answer lives across four sources at once. The traveler shows lot 4471 ran on press 7, second shift. The historian shows barrel zone 3 ran 9 degrees Celsius below setpoint for forty minutes during that shift, the signature of a heater band starting to fail. The CMMS shows a heater-band replacement work order opened on press 7 the very next morning, confirming the failure. The model book confirms that a cold zone 3 on this press produces exactly this flow defect. Grounded across all four, the AI assembles a sourced draft in seconds: probable cause is a degrading zone 3 heater band on press 7, evidenced by the historian dip, confirmed by the next-day work order, consistent with the model book's failure signature. Every claim carries a citation the engineer can open and check. That is grounding earning its keep on a real loss.
Chunking, Retrieval, and Citation: The Mechanics That Decide Trust
Grounding is not a switch you flip. The quality of the answer depends on three mechanical choices that a plant data lead has to get right. Get them wrong and the system retrieves the wrong page, or the right page in a form the model cannot use, and you are back to confident nonsense with a citation stapled to it.
Chunking. Documents are split into chunks before they go into the retriever, because you cannot feed a 400-page model book to the model at once. How you split matters. Chop a torque-spec table in the middle and the retriever may return the row of numbers without the header that says what they apply to, and the model will confidently attach the numbers to the wrong fastener. Good chunking keeps a table with its header, a procedure step with its warning, an alarm code with its description. On the floor this is not academic. A chunk that separates a torque value from the line that says "tie-bar nuts, cold" is how you get a right number applied to the wrong bolt.
Retrieval quality. The retriever returns the top few chunks it judges most relevant. If it returns the wrong chunks, the model answers from the wrong source no matter how good the model is. This is where the brownfield reality bites: if your travelers are scanned PDFs of handwriting and your historian tags are named like TT_0473_PV, the retriever has weak material to match against. Improving retrieval is mostly improving the source: clean tag descriptions, consistent document titles, machine-readable specs instead of scanned images. The retriever can only find what is findable.
Citation and refusal. The single most important design rule for floor AI is that every grounded answer must cite its source and the system must be allowed to refuse. "I could not find this in the controlled specs for this part" is a correct, valuable answer. A model that would rather invent than admit a gap is a model that will eventually invent a torque spec. The instruction to the generator must be explicit: answer only from the retrieved passages, cite each claim, and if the passages do not contain the answer, say so plainly. The citation is what lets a human verify, and verification is the entire accountability model of floor AI. The customer audits you, not the vendor, so when an auditor asks "how did the AI reach this," the answer must be "here is the controlled document it cited, revision included," not "the model said so."
Why citation makes the customer audit survivable
The cardinal rule of this program is that accountability for an AI-touched quality or maintenance decision stays with the plant and the human who signs the record. Grounding with mandatory citation is the mechanism that makes that accountability real instead of aspirational. When every AI answer points to a specific controlled document at a specific revision, the human reviewer can trace the answer back to the source, confirm it, and sign with confidence. The audit trail is not "we trusted the model." It is "the model retrieved this controlled drawing at this revision, the engineer verified it against the part, and the engineer signed." That trail survives an IATF 16949 or AS9100 audit. An ungrounded answer leaves no trail at all, and "the model flagged it" is never a sufficient answer to an auditor or a customer.
The Brownfield Tax: Grounding a Plant Nobody Digitized
Everything above assumes your sources are reachable. On a real plant they often are not, and pretending otherwise is the mistake every vendor demo makes. The demo grounds the AI on a clean, tagged, instrumented greenfield plant. Your plant has a 1990s PLC (Programmable Logic Controller, the industrial computer that runs the machine's logic), a historian nobody has queried in years, travelers that are paper, and a model book that is a coffee-stained binder in a drawer. Greenfield plants deploy AI 40 to 60% faster than brownfield, and grounding is a large part of why: on greenfield, the sources are already digital and tagged. The brownfield tax is the work of making your sources retrievable before grounding can help you.
This changes the sequencing of any grounding project. You do not start by buying a clever model. You start by taking inventory of which sources exist, which are digital, and which are reachable. A practical first pass looks like this.
- Specs and drawings: often the most digitized, living in a PLM or a network drive. Grounding here is usually achievable first, and it directly attacks the invented-spec failure, so it is a strong starting point.
- CMMS history: digital if you have a real CMMS, but often polluted with free-text work orders that say "fixed it" and nothing else. Grounding works, but the value is capped by how disciplined the historical logging was.
- Travelers: frequently paper or scanned images of handwriting. These need digitizing before retrieval can use them well, and that is real labor, not a software toggle.
- Model books: often PDFs from the OEM, sometimes only paper. Scanning and making them searchable is high value because alarm codes and torque specs live here.
- Historian: technically the richest source and practically the hardest, because the tags are cryptic and the OT boundary stands between the AI and the data. Wiring this in is usually the last and most governed step.
That last point is a hard constraint, not a detail. Recall that 78% of OT networks lack centralized monitoring. The historian and the PLC live on the OT (Operational Technology) side of the OT/IT boundary, the line that separates the factory-floor control network from the business IT network. You cannot bolt a retrieval system onto a plant you cannot see, and you must not let a grounding project become an uncontrolled bridge across that boundary. The correct pattern is to pull a read-only copy of the relevant historian data across a governed, monitored interface into a place the AI can safely read, never to give an AI assistant live reach into the control network. Grounding must respect the OT boundary, because a convenient data pipe that ignores it is a security incident waiting to happen.
The hard part of grounding on a brownfield plant is never the model. It is making your own paper, your cryptic tags, and your OT-side data reachable without crossing a boundary you cannot afford to cross.
Verifying a Grounded Answer Before You Act
Grounding reduces hallucination. It does not eliminate it, and treating "we have RAG now" as "the answers are correct now" is the next trap. A grounded system can still fail in specific ways the human reviewer must learn to catch, because the job on the floor shifted from producing the draft to verifying the draft against the drawing, the standard, and the historian.
The first failure is retrieving the wrong revision. The system finds a real controlled drawing and cites it, but it is revision C and the part now runs to revision E. The answer is grounded, sourced, and wrong. The reviewer's check is to confirm the cited revision is current. The second failure is the confident stitch: the model retrieves three correct chunks and then connects them with a sentence of its own invention that no source supports. The grounded facts are real, the connective claim is not. The reviewer's check is to confirm each load-bearing claim actually traces to a citation, not just that citations are present somewhere on the page. The third failure is the silent gap: the answer is correct as far as it goes but omits a material factor that lived in a source the retriever missed, the same incompleteness trap that bites any AI-assisted analysis. The reviewer's check is to ask "what source would have changed this answer, and did the system look there."
The verification discipline is short and it pays for itself. For any grounded answer that will drive an action on the line, the human confirms three things: the citation exists and opens to a real controlled source, the cited revision is current, and every claim the action depends on traces to a citation rather than to the model's connective prose. That check takes a couple of minutes. The escape it prevents, the 4,000-part containment that costs more than a month of the program, is the math that makes the couple of minutes the cheapest insurance on the floor. A grounded AI with a disciplined verifier is a genuine knowledge multiplier for a thin crew. A grounded AI that nobody verifies is just a more believable way to be wrong.
Key Takeaways
- A bare language model answers from a frozen, generic memory and knows nothing about your plant, so it produces confident, fluent answers grounded in nothing. On the floor that confidence is dangerous, especially handed to the thin, green crew the talent cliff is creating.
- Grounding via RAG (Retrieval-Augmented Generation) turns the closed-book exam into an open-book exam where the book is your plant. The system retrieves relevant passages from your own sources first, then the model answers only from those passages and cites them.
- A plant knowledge base needs five connected sources: controlled specs and drawings, travelers and routings, CMMS work-order history, the machine model book, and the historian. Real floor questions cross between them, as the lot 4471 flow-defect example showed: traveler plus historian dip plus next-day work order plus model-book signature.
- Three mechanics decide whether you can trust the output: chunking that keeps a value with its header and a step with its warning, retrieval quality that depends on clean and machine-readable sources, and mandatory citation with permission to refuse. "I could not find this in the controlled specs" is a correct and valuable answer.
- Mandatory citation is what makes the customer audit survivable. Accountability stays with the plant and the human who signs, and a grounded answer that cites a controlled document at a stated revision produces an audit trail that "the model said so" never will.
- The brownfield tax is real: greenfield plants deploy 40 to 60% faster largely because their sources are already digital. Inventory which sources are reachable, start where digitization is easiest and the payoff is highest (usually specs), and treat the historian as the richest and hardest source.
- Grounding must respect the OT boundary. With 78% of OT networks lacking centralized monitoring, you pull a read-only, governed copy of historian data for the AI to read, never give an AI live reach into the control network.
- Grounding reduces hallucination but does not end it. Before acting, verify three things: the citation opens to a real controlled source, the cited revision is current, and every load-bearing claim traces to a citation rather than to the model's connective prose. A couple of minutes of verification is the cheapest insurance against a containment-sized escape.
Skill.re