Blog

Reading ten thousand pages of procedures

Every plant has a room, or a server, where the procedures live. Nobody has read all of them. Nobody could.

Date

The binder and the pump

A seal-flush pump trips at three in the morning. The operator has not started that pump by hand in two years, because it has not tripped in two years. There is a procedure. There is certainly a procedure. It is in a document whose title does not contain the word "pump", filed under a unit number that was changed in a reorganization, and it refers on page four to a valve line-up described in some other document entirely.

He finds it in the end. Or he rings somebody who remembers. Or he does it from memory, which is how most things get done at that hour, and usually it is fine.

The documents are not the problem. Plants write good procedures; a lot of hard experience is in them. The trouble is quantity. Operating procedures, maintenance instructions, vendor manuals, hazard studies, incident reports, management-of-change records, thirty years of shift logs. Ten thousand pages is a modest count for a mid-sized site. What the plant knows is in there. It just can't be got at when it is wanted.

And search, of the ordinary kind, is not much help. Search finds words. The operator types "seal flush pump trip" and the procedure calls it "loss of barrier fluid circulation". Both mean the same thing. The computer cannot see it.

A clerk who has read everything

A language model changes the terms of the problem, and it is worth being precise about how, since the subject attracts a good deal of fog.

What a language model is good at is meaning. It can tell that "seal flush pump trip" and "loss of barrier fluid circulation" are about the same event. So the documents are cut into passages, and each passage is filed by what it is about and not by the words it happens to use. A question, put in the operator's own words, pulls out the handful of passages that bear on it. Then the model reads those passages, only those, and writes an answer from them, and says which document and which page each part came from.

That last clause is the whole design. I would not put a model in front of an operator that answered from its general education. A language model has read a large part of the internet and has a fluent opinion on everything, including your pump, which it has never seen. Asked cold, it will produce a start-up sequence that sounds exactly right and belongs to no pump on earth. It is not lying. It has no notion of the difference.

So the rule is simple and I would not bend it: the model answers from the plant's documents, shows the passage, and when the documents are silent it says they are silent. Think of a clerk who has read every page in the building and can put a finger on the paragraph you want. A clerk, not an engineer. The clerk finds the paragraph. The person on shift reads it and decides.

What the clerk finds along the way

Two practical matters, both less exciting than the technology and both more important.

One is revision. A document room is an archaeological site. Revision C of a procedure sits beside revision F and a scanned copy of revision A with somebody's pencil notes. If the system is fed all three, it will sooner or later quote the wrong one with great assurance. Sorting out which documents are current is slow, thankless, and most of the job.

The other is where the documents go. A plant's procedures and incident reports are not things to post to a public service. The model can run inside the site's own walls, on the site's own machines, and for this kind of material I think that it should.

There is a side effect I did not expect the first time, and now look forward to. When you make a machine read ten thousand pages, it notices things. Two procedures that give different torque values for the same flange. An instruction that refers to a tank demolished in a previous decade. A step that says "see supervisor" where the supervisor's post was abolished. Nobody had seen these, because nobody had ever read the whole collection end to end. Finding them is an unglamorous use of language models on a plant. It may also be the most valuable.

The operator at three in the morning, meanwhile, types his question the way he would say it to a colleague. He gets four lines, and a page number. He reads the page. Then he goes and starts the pump.