AI for Manufacturing
Aware · M7 · lesson 7 of 19 · queued
Preview — browse every lesson free. Enroll to mark lessons complete, open partner links and save your progress. Login & enroll →
How Generative AI Works — A Plant Engineer's Guide
📖
now learning

How Generative AI Works — A Plant Engineer's Guide

15 min

At 6:40 on a Tuesday morning, before the first shift even badged in, a process engineer named Maria opened a chatbot and typed a request she had typed a dozen times that month: "Write me a work instruction for torquing the cylinder head on the V6 block, 8 bolts, two-pass sequence." Thirty seconds later she had a clean, confident, professionally formatted procedure. Numbered steps. A torque sequence diagram described in words. A first pass and a final pass. And a torque value: 90 newton-meters, final pass. It read like something a senior manufacturing engineer with twenty years on the line would have written. There was one problem. The drawing called for 65 newton-meters. The model had never seen Maria's drawing. It had never seen her engine. The 90 it produced was not a lookup, not a recall, not a fact pulled from a database. It was a guess, a very good guess, the kind of number that appears in a lot of cylinder-head procedures across the internet, dressed up in the exact same confident tone as the parts of the procedure that were genuinely correct. That gap, between the procedure that was right and the number that was invented, is the whole subject of this lesson. To know which parts of an AI answer you can trust and which parts will quietly send 4,000 over-torqued heads to a customer, you have to understand one thing the vendors rarely explain: how the machine actually produces words in the first place.

What the Model Is Really Doing

Strip away the marketing and a generative AI model, the kind behind every chatbot you have been handed in the last two years, is doing one job over and over: predicting the next piece of text. That is not a simplification for beginners. That is the actual mechanism. The model looks at everything written so far, the prompt plus whatever it has already produced, and it computes the single most likely next chunk of text. Then it adds that chunk, looks again at the whole thing, and predicts the next chunk after that. It repeats this thousands of times, one small step at a time, until it decides the answer is complete.

Think about how a seasoned operator finishes your sentences in the morning meeting. You start, "The number four press is throwing that fault again, so we need to," and before you get another word out the operator says "swap the proximity sensor." They are not reading a manual in that instant. They have heard that sentence start a hundred times, and the ending that almost always followed is "swap the proximity sensor." That is pattern completion from experience. A generative model is doing the same trick at an enormous scale, except its experience is not one machine for one career, it is a staggering amount of text from across the internet, books, manuals, code, and forums.

The unit the model works in is called a token. A token is a chunk of text, usually a word or a piece of a word. "Torque" might be one token. "Newton-meters" might be three. The model does not see letters or meaning the way you do. It sees a long sequence of these tokens, each one represented inside the machine as a list of numbers, and it has learned, from all that training text, which tokens tend to follow which other tokens. When you ask it a question, it converts your words into tokens, and then it begins predicting the next token, and the next, and the next.

Here is the part that matters for the floor. The model is optimizing for one thing: plausibility. It wants the next token to be the kind of token that usually comes next in text like this. It is not optimizing for truth. It has no separate fact-checking step, no internal database it queries, no little voice that says "wait, I am not actually sure about that torque value." The same machinery that produced the correct two-pass sequence in Maria's procedure produced the wrong 90 newton-meters, because both of them were plausible continuations of the text. To the model, a correct number and a confidently wrong number look identical. They are both just likely tokens.

A generative model predicts the most plausible next words. Plausible is not the same as true, and the model cannot tell the difference for you.

This is why the output is so smooth and so dangerous at the same time. The fluency is real: the model genuinely is very good at producing text that reads like an expert wrote it. But fluency is a property of the words, not of the facts inside them. A junior operator reading Maria's procedure cannot tell the 65 from the 90 by the way it is written, because the model writes the wrong number with exactly the same calm authority as the right one.

Where the Knowledge Comes From: Training

To understand why the model knows anything at all, you have to understand training, and the cleanest way to picture training is to compare it to how you actually qualified an operator on a new line.

When a green hire starts, you do not hand them a rulebook and expect mastery. You put them next to the work for weeks. They watch good parts go by and bad parts get pulled. Slowly, without anyone writing down an equation, their hands and eyes learn the pattern of what a good part looks like and what a bad one feels like. They cannot always tell you the rule in words, but they have internalized it. Training a generative model is the same idea, automated and scaled up to an absurd degree.

During training, the model is fed enormous quantities of text and given a simple, relentless exercise: here is a passage with the next word hidden, guess it. It guesses, the real word is revealed, and if the guess was wrong the model's internal settings are nudged a tiny bit so that next time it would have been a little closer. These internal settings are called parameters or weights, and a large model has billions of them. This guess-and-nudge loop runs across the training text trillions of times. No human writes rules like "after the phrase cylinder head torque, a number near 65 to 90 usually appears." The model discovers that pattern on its own, the way your operator discovered the look of a good weld without ever being handed the metallurgy.

Two consequences fall directly out of this, and both decide how you should use the tool.

First, the model only knows what was in its training text, and only as patterns, not as a filing cabinet. It read a great many torque procedures, so it has a strong sense of what such a procedure looks like and what range of numbers tends to appear. It did not read your specific drawing for your specific engine, so it has no actual knowledge of your 65. When you ask, it fills the gap with the most typical-looking value from everything it absorbed. It is averaging the internet, and your part is not the average.

Second, training has a cutoff date and it does not update itself. The model learned from text gathered up to a certain point, then training stopped and the weights froze. It does not know about the engineering change order your team released last month. It does not know your customer revised the print in March. A frozen model is a snapshot, like an operator who trained brilliantly in 2023, went on extended leave, and came back convinced the old revision is still current. Skilled, confident, and quietly out of date on exactly the things that changed.

Put a number on what this saves and what it can cost. A clean first draft of a multi-step work instruction that used to take a busy engineer 45 minutes now lands in under a minute. Across a plant rewriting 200 instructions during a line move, that is roughly 150 hours of engineering time, real money at a loaded rate of 60 to 90 dollars an hour, somewhere between 9,000 and 13,500 dollars of labor recovered. That is the upside, and it is genuine. The downside lives in that one frozen, averaged torque value: if the over-torqued heads escape and become a customer containment, the sort that pulls a quality engineer off everything else for a week and ships sorted parts back across the country, the containment alone can erase a full year of that drafting savings. The tool gives you the 45 minutes. Whether it costs you the containment is decided entirely by whether a human checked the number against the drawing.

Why the Same Model Drafts Brilliantly and Invents Recklessly

The most confusing thing about generative AI on the floor is that the same tool, in the same answer, can be a genius and a liar at the same time. Maria's procedure had a perfect structure and a fabricated number side by side. This is not a glitch or a bad day for the model. It is the direct, predictable result of how prediction works, and once you see why, you will never again be surprised by it.

Some things appear in the training text in a highly consistent way. The general shape of a cylinder-head torque procedure, tighten in a crossing pattern, do it in two or more passes, work from the center out, is repeated almost identically across thousands of sources because it is genuinely standard practice. When the model has seen the same pattern stated the same way many times, its prediction is reliable, because the most plausible continuation really is the correct one. The structure of the procedure is in this category. That is why it came out right.

Other things vary wildly from one source to the next. The exact torque value for a specific head on a specific engine differs by manufacturer, by material, by bolt grade, by gasket, by revision. The training text contains a wide scatter of numbers in roughly the same range, all attached to similar-looking sentences. When the model reaches the point where a number has to appear, it cannot retrieve your number, because your number was never the dominant pattern. So it produces a plausible value from the cloud of numbers it absorbed. That value will look completely normal. It will sit in a believable range. And it will be wrong for your part, because it was never about your part. The torque value is in this category. That is why it came out invented.

This points to a rule you can carry into every interaction with the tool. Generative AI is strongest on the form of technical work and weakest on the specific values inside it. Form is stable across the world, so the model learned it well. Specific values are local to your plant, your print, your revision, and the model never saw them, so it approximates. The structure of an 8D, the sections of a PPAP submission (Production Part Approval Process, the package you send a customer to prove a part is made to print), the layout of a control plan, the flow of a 5-Whys: these the model produces beautifully, because they are standardized. The actual torque, the actual tolerance, the actual feed and speed, the actual root cause for your specific failure: these it will guess, because they are yours alone.

Consider a maintenance example to drive it home. Ask the model to draft a preventive-maintenance procedure for a hydraulic power unit and it will give you an excellent skeleton: check fluid level, inspect for leaks, sample the oil, check filter differential pressure, log the readings, verify relief-valve setting. Every one of those steps is correct because every PM procedure for a power unit contains them. Then it will tell you to set the relief valve to 2,000 psi. Your unit runs at 1,450. The 2,000 came from the average of the internet, the same way the 90 newton-meters did, and an operator who follows it will be running your system 38 percent over its design pressure on the authority of a chatbot.

Reading Confidence: The Tone Is Not a Signal

On the floor you have learned to read confidence as information. When the most experienced tech says, without hesitation, "that is the number three bearing, I have heard it a hundred times," the certainty in their voice is a real signal, because it was earned through a hundred actual failures. We are wired to treat fluency and confidence as evidence of knowledge. Generative AI breaks that instinct completely, and unlearning it is one of the most important things this lesson can give you.

The model produces every answer in the same confident register. It does not have a tone for "I know this cold" and a different tone for "I am genuinely guessing here." It cannot, because internally it does not distinguish the two. The correct two-pass sequence and the invented 90 newton-meters were generated by the same process, and so they come out in the same voice. The fluency you are reading is a property of the language model's training on well-written text. It is not a confidence rating on the facts. A model can be completely, dangerously wrong and sound exactly as sure of itself as when it is right.

This is the precise trap that makes generative AI more hazardous than an old-fashioned search. When you searched a forum, the rough writing and the obvious randos warned you to verify. The model launders every source, the expert and the rando alike, into the same clean, authoritative prose. It strips away every cue you used to rely on to gauge reliability. That is why a number from a chatbot can slip past a check that a number from a sketchy forum post never would have. The packaging is too good.

There is a related failure worth naming so you recognize it in the wild. The model will often invent a source to go with an invented fact. Ask it to cite the standard for a weld inspection acceptance criterion and it may hand you a real-sounding clause number from a real-sounding standard, AWS D1.1, Table 6.1, sounds airtight, and the clause may not say what the model claims or may not exist at all. The fabricated citation is generated by the same plausibility engine as the fabricated torque value. A confident reference is not verification. It is just more fluent text, and it must be checked against the actual document the same as everything else.

The Job Shifted from Drafting to Verifying

Here is the reframe that turns all of this from a warning into a working method. Generative AI does not eliminate the manufacturing engineer's job. It moves it. The hard, valuable part of the work was never the typing. It was the judgment: knowing that this head torques to 65 and not 90, knowing that this relief valve is set at 1,450, knowing that this customer's print revision changed in March. The model is genuinely excellent at the typing. It is incapable of the judgment. So your job shifts from producing the draft to verifying the draft against the things only you and your plant possess: the drawing, the standard, the historian, and the customer's print.

This is not a downgrade of the role. It is a leverage multiplier, and the talent math of 2026 makes it essential rather than optional. The industry is staring at roughly two million manufacturing workers who need reskilling against about 500,000 unfilled roles, and 85 percent of manufacturers say the staffing shortage is already hurting product quality. You cannot hire your way to enough senior engineers to hand-write every procedure. A thinner, greener crew has to produce more documentation than ever. Generative AI lets one experienced engineer draft at the speed of ten, but only if that engineer treats the output as a draft to be verified, never as a fact to be trusted. The model is a knowledge multiplier for the people who already have the knowledge to check it. It is a liability multiplier for the people who do not.

So what does verification actually look like at the bench, in the few minutes you have between fires? It is concrete and it is fast once it is a habit.

  • Every number gets traced to a source you control. A torque, a tolerance, a pressure, a temperature, a feed, a speed, a clearance: none of these are accepted from the model. Each one is checked against the drawing, the spec, the machine's model book, or the historian. If you cannot find the source, the number does not ship.
  • Every citation gets opened. If the model names a standard, a clause, or a procedure number, you open the actual document and confirm it says what the model claims. A reference you did not verify is a reference you are inventing on the model's behalf.
  • Every step gets sanity-checked against the real process. The model does not know your fixture, your tooling, or the quirk that the night shift discovered last winter. Read the procedure as the operator will run it and confirm it matches the floor, not the average plant.
  • The structure you can trust faster than the specifics. Standardized form, the sections, the sequence, the layout, is where the model is strong, so it earns a lighter check. The local values are where it is weak, so they earn the heavy check. Spend your verification time where the risk lives.

Run the economics one more time with verification in place. The draft still saves the engineer 40-plus minutes. The verification pass on a typical work instruction, tracing the handful of numbers and opening the one or two citations, costs maybe 8 to 12 minutes. You are still net ahead by half an hour per document, and the 90-newton-meter escape never happens because the number got traced to the print and corrected to 65 before an operator ever saw it. That is the entire deal: keep the speed, add the check, and the tool becomes the multiplier the talent cliff demands instead of the containment generator it becomes when nobody checks.

When Grounding Changes the Picture

Everything above describes a bare model answering from its frozen training alone. There is a technique that meaningfully shifts the risk, and you should know it exists and what it does and does not fix, because vendors will sell it to you as a cure and it is not one.

The technique is called RAG, which stands for retrieval-augmented generation. In plant terms it means this: before the model answers, the system first looks up the relevant real documents, your actual drawing, your actual spec, your actual maintenance manual, and hands those documents to the model along with your question, with an instruction to answer from the provided documents. Instead of asking the model to recall a torque value from the average of the internet, you are putting your real drawing in front of it and asking it to read the value off the page you gave it. It is the difference between asking the tech to remember the spec from memory and handing them the actual print to read from.

When it works, RAG dramatically reduces the invented-number problem, because the model is now completing text using your real document as the immediate context, not its hazy memory of a thousand other documents. If your 65-newton-meter print is in front of the model, the most plausible continuation becomes the 65 that is literally on the page. This is why grounding the model on plant data is one of the most valuable things an integrated AI workflow can do, and it is a topic developed in depth later in the program.

But understand the limits clearly, because they are where the false sense of safety hides. RAG only helps if the right document was actually retrieved and handed to the model. If the system pulls the wrong revision of the print, you now have a confident answer grounded in last year's spec. If the document is not in the system at all, the model quietly falls back to guessing, and you may not be able to tell from the answer that it did. And RAG does nothing about a document that is itself wrong: garbage in the source is garbage in the answer, stated fluently. Grounding moves the verification burden, it does not remove it. You still confirm the answer matches the correct, current source. The model is reading the page now instead of remembering it, which is a real improvement, but you are still the one who confirms it picked up the right page.

The honest summary for a plant engineer in 2026 is this. A bare model is a brilliant, fast, frozen, confident draftsman who will invent any specific value you ask for and never tell you it did. A grounded model is the same draftsman handed your real documents, far more likely to read off the correct value, but still capable of working from the wrong page if the retrieval missed. In both cases the accountability, and the verification, stay with you. The customer audits you, not the model that helped you draft. That is the rule that does not move no matter how good the technology gets.

Key Takeaways

  • A generative AI model produces text by predicting the most plausible next token over and over. It optimizes for plausibility, not truth, and it has no internal step that checks whether a fact is correct, so a confidently wrong torque value and a correct one are generated by the identical process.
  • The model learned from a huge body of text up to a frozen cutoff date. It knows your kind of work as a pattern but does not know your specific drawing, your revision, or last month's engineering change. For local values it fills the gap with the average of everything it absorbed, and your part is not the average.
  • The same model drafts structure brilliantly and invents specifics recklessly because standardized form (an 8D layout, a PPAP package, a two-pass torque sequence) is consistent across its training, while specific values (the actual torque, tolerance, or pressure) vary by source and were never your number to begin with.
  • Fluency and confidence are properties of the language, not a rating of the facts. The model writes a fabricated 90 newton-meters and a correct 65 in the exact same authoritative voice, and it will even invent a real-sounding citation to support an invented fact, so tone tells you nothing about reliability.
  • The job shifts from drafting to verifying. The model is excellent at the typing and incapable of the judgment, so the engineer's value moves to checking every number against the drawing, opening every cited standard, and sanity-checking every step against the actual process, the things only the plant possesses.
  • Verification is fast once it is a habit: trace every number to a controlled source, open every citation, sanity-check the steps against the real floor, and trust standardized structure faster than local specifics. A draft saves about 40 minutes; the verification pass costs 8 to 12, so the speed stays and the escape never happens.
  • RAG (retrieval-augmented generation) puts your real documents in front of the model before it answers, sharply reducing invented numbers when it works. It does not remove the need to verify: it can retrieve the wrong revision, miss the document entirely and fall back to guessing, or faithfully repeat a source that is itself wrong.
  • Accountability never transfers to the model. A bare model is a fast, frozen, confident draftsman who will invent any value and never warn you; a grounded model reads off your real page but can still grab the wrong one. In every case the customer audits you, and the verification is yours.