{"data":{"slug":"llm-rag-industrial-documentation-safe-deployment","title":"LLM Assistants for Plant Documentation: Safe RAG Deployment","summary":"A plant documentation assistant is safe only when it cites controlled revisions, respects source permissions, and stays read-only and advisory, which a fixed…","category":{"slug":"digital-transformation","name":"Digital Transformation"},"url":"https://wiki.aspotomasyon.com/article/llm-rag-industrial-documentation-safe-deployment","markdown_url":"https://wiki.aspotomasyon.com/article/llm-rag-industrial-documentation-safe-deployment.md","api_url":"https://wiki.aspotomasyon.com/api/v1/articles/llm-rag-industrial-documentation-safe-deployment","published":"2026-10-11T11:46:21+00:00","modified":"2026-10-11T11:46:21+00:00","reading_minutes":9,"word_count":1927,"image":"https://wiki.aspotomasyon.com/assets/social/llm-rag-industrial-documentation-safe-deployment-40155621b146.png","html":"<p>A plant documentation assistant is safe only when it cites controlled revisions, respects source permissions, and stays read-only and advisory, which a fixed test set must prove.</p><figure class=\"article-figure\"><img src=\"https://wiki.aspotomasyon.com/assets/diagrams/llm-rag-industrial-documentation-safe-deployment.svg\" width=\"1100\" height=\"460\" loading=\"lazy\" decoding=\"async\" alt=\"LLM Assistants for Plant Documentation: Safe RAG Deployment — Curate the corpus → Enforce permissions → Require citations → Evaluate and review.\"><figcaption>LLM Assistants for Plant Documentation: Safe RAG Deployment — Curate the corpus → Enforce permissions → Require citations → Evaluate and review. <a href=\"https://wiki.aspotomasyon.com/assets/diagrams/llm-rag-industrial-documentation-safe-deployment.svg\" target=\"_blank\" rel=\"noopener\">View full size</a></figcaption></figure><p>Maintenance and operations teams often need to find the right procedure, the right revision, and the history of a recurring fault in the middle of a shift. A retrieval-augmented generation (RAG) assistant can answer those questions in plain language. It retrieves passages from controlled documents and asks a language model to draft an answer from them. The benefit is speed. The risk is an answer that sounds correct, cites nothing, or relies on a superseded procedure.</p><p>This article describes how to deploy such an assistant for plant documentation. It covers the document corpus, permissions, citation rules, evaluation, human review, logging, and the security risks that arise when a language model reads text it does not control. It assumes the assistant is advisory only and has no write path to control systems. For the wider set of use cases, see <a href=\"https://wiki.aspotomasyon.com/article/ai-ml-industrial-applications\">AI and machine learning in manufacturing</a>.</p><h2 id=\"how-a-rag-assistant-answers-from-plant-documents\">How a RAG assistant answers from plant documents</h2><p>A RAG system has three steps. It converts a question into a search over an index of document passages. It returns the most relevant passages together with their source identifiers. Then a language model writes an answer limited to those passages. The model does not learn your plant from the question. The answer is only as good as the passages it receives, so the retrieval step decides most of the outcome.</p><p>Retrieval keeps answers current because the index can be rebuilt when a controlled document changes. It does not guarantee correctness. A passage can be retrieved and still be the wrong revision, a draft, or a fragment without its context. For that reason the design puts most of its effort into the corpus, the permissions, and the answer contract rather than into the choice of model.</p><h2 id=\"curate-the-corpus-controlled-current-and-revision-tagged\">Curate the corpus: controlled, current, and revision-tagged</h2><p>Index only documents the site controls. A document is eligible when it has an owner, a revision, an effective date, and a status such as approved or superseded. Drafts, personal copies, and scanned pages with poor text recognition cause most early errors. Keep superseded revisions out of the answer index, or mark them so the assistant can decline to rely on them.</p><table><caption>Corpus rules by document type</caption><thead><tr><th scope=\"col\">Document type</th><th scope=\"col\">Common failure</th><th scope=\"col\">Metadata required before indexing</th></tr></thead><tbody><tr><th scope=\"row\">Standard operating procedure</th><td>An old revision answers the question</td><td>Document number, revision, effective date, approver, superseded flag</td></tr><tr><th scope=\"row\">Equipment manual</th><td>A manual for a different model or variant</td><td>Equipment tag or model, manual revision, language</td></tr><tr><th scope=\"row\">Maintenance work order history</th><td>Free text with abbreviations and no context</td><td>Asset tag, work order date, failure code, closure status</td></tr><tr><th scope=\"row\">Piping and instrument diagram</th><td>An image with no reliable machine-readable text</td><td>Drawing number, revision, tag list, extracted text checked by a person</td></tr><tr><th scope=\"row\">Engineering change record</th><td>The change is not linked to the document it changed</td><td>Change number, affected document IDs, approval date</td></tr></tbody></table><h2 id=\"access-control-follows-the-source-document\">Access control follows the source document</h2><p>The assistant must never show a passage that the requesting user could not open in the source system. Carry permission labels from the document management system into the index, and filter retrieval by the identity of the user who asks. A filter applied only to the displayed answer is not enough, because the model may already have used restricted text to write the answer. Refresh permissions when source permissions change, not only on a fixed schedule. Name an owner for each permission label, following the approach in <a href=\"https://wiki.aspotomasyon.com/article/manufacturing-data-governance\">manufacturing data governance</a>.</p><ul><li>Use the requesting user's identity for every retrieval call, not a shared service account that can read everything.</li><li>Test permission removal: a user removed from a site group must lose access within the refresh interval the project sets.</li><li>Keep the index in the same security zone as its sources rather than on a more open network segment.</li></ul><h2 id=\"citations-refusals-and-hallucination-control\">Citations, refusals, and hallucination control</h2><p>Hallucination means generating content that the sources do not support. The OWASP Top 10 for LLM Applications lists misinformation as a core risk. The NIST AI Risk Management Framework (AI RMF 1.0) offers a useful vocabulary for these controls. NIST notes on its page that the framework is being revised, so check the current version before you cite it. The control itself is an answer contract. Every factual statement cites a document number, revision, and section. When no retrieved passage supports an answer, the assistant says so and returns the closest sources for a person to check, rather than guessing.</p><ol><li><strong>Require a source for each claim.</strong> Reject any answer whose factual statements lack a citation to a retrieved passage.</li><li><strong>State the revision.</strong> Show the document number and revision with each citation, so the reader can open the exact version.</li><li><strong>Refuse on weak retrieval.</strong> When no passage is relevant enough, return no answer and a short list of likely sources.</li><li><strong>Flag mixed evidence.</strong> Mark answers that combine several documents or rely on a passage that a newer revision may have changed.</li></ol><h2 id=\"read-only-advisory-no-writes-to-control-systems\">Read-only advisory: no writes to control systems</h2><p>The assistant should answer questions, point to sources, and draft text for a person to review. It must not hold credentials or a network path that lets it change set points, modes, alarm limits, interlock settings, or work orders in any system that drives a process. Actions of that kind go through the site's management-of-change and authorization procedures. OWASP lists excessive agency, meaning more permission or autonomy than a task needs, as a separate risk, so restrict the assistant's tools to read operations and keep it off the control network.</p><p>Bypass, override, and safety-function decisions are outside the assistant's scope. Design, validation, and bypass decisions for safety functions belong with qualified functional-safety engineers working to the applicable standard. A language model must not be the basis for those decisions.</p><h2 id=\"prompt-injection-data-leakage-and-audit-logs\">Prompt injection, data leakage, and audit logs</h2><p>Retrieved passages and work order text are untrusted input. Any document or note can contain text that attempts to override the assistant's instructions. OWASP lists prompt injection first among its risks for LLM applications, and sensitive information disclosure as another. Defensive measures include keeping system instructions separate from retrieved text, keeping secrets out of prompts, filtering output for restricted identifiers, and treating every procedure the assistant describes as draft text until a person verifies it against the source.</p><p>Log each interaction for audit: the user, time, query, retrieved document IDs and revisions, the answer, and reviewer feedback. Apply the site's retention and privacy rules to the logs, because maintenance questions can reveal sensitive process details. The logs also feed the security review described in <a href=\"https://wiki.aspotomasyon.com/article/ot-security-architecture-defense-in-depth\">OT security architecture: defense in depth</a>.</p><h2 id=\"evaluate-with-a-fixed-question-set-and-human-review\">Evaluate with a fixed question set and human review</h2><p>Test each release against the same question set. Each question records the expected source document and revision and an acceptable answer shape. Reviewers score the citation, not only the fluency of the text. A change to the model, the prompt, the document chunking, or the corpus triggers a full rerun. Any answer that will guide physical work needs a qualified person's review before use.</p><ol><li><strong>Write the question set.</strong> Include routine questions, edge cases, questions whose answer is in a superseded document, and questions the corpus cannot answer.</li><li><strong>Record the expected answer.</strong> Name the correct document and revision for each question, confirmed by the document owner.</li><li><strong>Run and score.</strong> Score each answer for correct source, correct revision, and correct refusal where no source exists.</li><li><strong>Fix the cause, then rerun.</strong> Correct the corpus, permissions, or prompt before changing the model, and rerun the full set.</li></ol><aside class=\"article-callout\"><strong>Illustrative example</strong><p>Assume a fixed set of 100 questions. The first run scores 84 answers correct on source and revision. Six answers cite a superseded revision, and ten give unsupported answers to questions the corpus cannot answer. Assume the team flags superseded documents in the index and tightens the refusal rule. The second run then scores 95 correct. These numbers are assumptions chosen to show the method, not measured results. The acceptance rule is that no answer may cite a superseded revision or make an unsupported claim.</p></aside><section class=\"engineering-check\"><h2 id=\"apply-this-to-your-project\">Apply this to your project</h2><ul><li>The corpus holds only controlled documents, each with a revision, an effective date, and a superseded flag.</li><li>Permissions are inherited from the source system and tested with an account that lacks access.</li><li>Each answer cites document number, revision, and section for every factual statement, and refuses when no passage supports it.</li><li>The assistant has read-only tools and no network path to control, alarm, or safety systems.</li><li>A fixed question set with expected sources runs before each release, and the results are recorded.</li><li>Audit logs capture user, query, retrieved revisions, answer, and reviewer feedback, under the site retention rules.</li></ul><p><a href=\"https://wiki.aspotomasyon.com/guides\">Follow an ASP project guide</a> to connect the fundamentals with implementation and acceptance.</p></section><section class=\"article-faq\"><h2 id=\"frequently-asked-questions\">Frequently asked questions</h2><div class=\"faq-item\"><h3 id=\"can-a-language-model-read-plant-documents-without-leaking-them\">Can a language model read plant documents without leaking them?</h3><p>It can, if the design controls access. Index only documents the user is allowed to open in the source system, use the requesting user's identity for each retrieval, and keep the index in the same security zone as its sources. Test with an account that lacks access, and log every retrieval for audit.</p></div><div class=\"faq-item\"><h3 id=\"why-not-fine-tune-a-model-on-our-manuals-instead\">Why not fine-tune a model on our manuals instead?</h3><p>Fine-tuning does not keep a link from each answer to the specific controlled revision, and removing a superseded procedure from a trained model is hard. Retrieval keeps the citation to a document that can be checked. Many teams start with retrieval and consider training only after the corpus and the evaluation set are stable.</p></div><div class=\"faq-item\"><h3 id=\"how-do-we-stop-the-assistant-from-making-up-procedures\">How do we stop the assistant from making up procedures?</h3><p>Require a citation for every factual statement, and make the assistant refuse when no retrieved passage supports the answer. Score a fixed question set that includes questions the corpus cannot answer, and treat any unsupported answer as a failure. Human review remains necessary for any answer used to perform work.</p></div><div class=\"faq-item\"><h3 id=\"can-the-assistant-open-a-valve-or-change-a-set-point\">Can the assistant open a valve or change a set point?</h3><p>It should not. Design the assistant as read-only and advisory, with no write path to control, alarm, or safety systems. Any process change goes through the site management-of-change and authorization procedures, and decisions about safety functions belong with qualified functional-safety engineers.</p></div><div class=\"faq-item\"><h3 id=\"what-is-prompt-injection-and-why-does-it-matter-for-documents\">What is prompt injection, and why does it matter for documents?</h3><p>Prompt injection is text that tries to override the instructions given to a language model. It matters for plant documents because any document, work order, or note can contain such text. Keep retrieved text separate from instructions, restrict tool access, and never let retrieved text trigger an action without human approval.</p></div></section><h2 id=\"continue-the-engineering-work\">Continue the engineering work</h2><ul><li><a href=\"https://wiki.aspotomasyon.com/article/ai-ml-industrial-applications\">AI and Machine Learning in Manufacturing: Practical Applications</a></li><li><a href=\"https://wiki.aspotomasyon.com/article/augmented-reality-industrial-maintenance\">Augmented Reality for Industrial Maintenance and Training</a></li><li><a href=\"https://wiki.aspotomasyon.com/article/manufacturing-data-governance\">Manufacturing Data Governance: Ownership, Quality and Lineage</a></li><li><a href=\"https://wiki.aspotomasyon.com/article/ot-security-architecture-defense-in-depth\">OT Security Architecture: Defense in Depth for Industrial Networks</a></li><li><a href=\"https://wiki.aspotomasyon.com/article/automation-handover-documentation\">Automation Handover Package: What Operations Needs After Commissioning</a></li></ul><p>Browse the <a href=\"https://wiki.aspotomasyon.com/category/digital-transformation\">related technical library</a> or follow an <a href=\"https://wiki.aspotomasyon.com/guides\">ASP project guide</a> to plan the implementation sequence.</p><figure class=\"article-figure\"><img src=\"https://wiki.aspotomasyon.com/assets/diagrams/digital-transformation-context.svg\" width=\"1100\" height=\"460\" loading=\"lazy\" decoding=\"async\" alt=\"An industrial data workflow. Each handoff needs an owner and a documented data contract; collecting more signals alone does not establish business value.\"><figcaption>An industrial data workflow. Each handoff needs an owner and a documented data contract; collecting more signals alone does not establish business value. <a href=\"https://wiki.aspotomasyon.com/assets/diagrams/digital-transformation-context.svg\" target=\"_blank\" rel=\"noopener\">View full size</a></figcaption></figure><h2 id=\"primary-references-and-further-reading\">Primary references and further reading</h2><p>Use the original specifications and product documentation for implementation details. Examples in this guide are illustrative engineering scenarios, not published project results.</p><ul><li><a href=\"https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-ai-rmf-10\" rel=\"noopener noreferrer\" target=\"_blank\">NIST — Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1</a></li><li><a href=\"https://www.nist.gov/itl/ai-risk-management-framework\" rel=\"noopener noreferrer\" target=\"_blank\">NIST — AI Risk Management Framework program page</a></li><li><a href=\"https://csrc.nist.gov/pubs/sp/800/82/r3/final\" rel=\"noopener noreferrer\" target=\"_blank\">NIST — Guide to Operational Technology (OT) Security, SP 800-82 Rev. 3</a></li><li><a href=\"https://owasp.org/projects/top-10-for-large-language-model-applications\" rel=\"noopener noreferrer\" target=\"_blank\">OWASP Foundation — Top 10 for Large Language Model Applications</a></li><li><a href=\"https://genai.owasp.org/llm-top-10/\" rel=\"noopener noreferrer\" target=\"_blank\">OWASP GenAI Security Project — LLM Top 10 list</a></li></ul><!-- asp-editorial-202609 --><!-- asp-expansion-202610 -->","markdown":"# LLM Assistants for Plant Documentation: Safe RAG Deployment\n\n> A plant documentation assistant is safe only when it cites controlled revisions, respects source permissions, and stays read-only and advisory, which a fixed…\n\n- Canonical URL: https://wiki.aspotomasyon.com/article/llm-rag-industrial-documentation-safe-deployment\n- Publisher: ASP OTOMASYON A.Ş. (ASP OTOMASYON Wiki)\n- Category: Digital Transformation\n- Published: 2026-10-11 · Updated: 2026-10-11\n- Reading time: 9 min · Language: English\n\nA plant documentation assistant is safe only when it cites controlled revisions, respects source permissions, and stays read-only and advisory, which a fixed test set must prove.\n\n![LLM Assistants for Plant Documentation: Safe RAG Deployment — Curate the corpus → Enforce permissions → Require citations → Evaluate and review.](https://wiki.aspotomasyon.com/assets/diagrams/llm-rag-industrial-documentation-safe-deployment.svg)\n\n*LLM Assistants for Plant Documentation: Safe RAG Deployment — Curate the corpus → Enforce permissions → Require citations → Evaluate and review.*\n\nMaintenance and operations teams often need to find the right procedure, the right revision, and the history of a recurring fault in the middle of a shift. A retrieval-augmented generation (RAG) assistant can answer those questions in plain language. It retrieves passages from controlled documents and asks a language model to draft an answer from them. The benefit is speed. The risk is an answer that sounds correct, cites nothing, or relies on a superseded procedure.\n\nThis article describes how to deploy such an assistant for plant documentation. It covers the document corpus, permissions, citation rules, evaluation, human review, logging, and the security risks that arise when a language model reads text it does not control. It assumes the assistant is advisory only and has no write path to control systems. For the wider set of use cases, see [AI and machine learning in manufacturing](https://wiki.aspotomasyon.com/article/ai-ml-industrial-applications).\n\n## How a RAG assistant answers from plant documents\n\nA RAG system has three steps. It converts a question into a search over an index of document passages. It returns the most relevant passages together with their source identifiers. Then a language model writes an answer limited to those passages. The model does not learn your plant from the question. The answer is only as good as the passages it receives, so the retrieval step decides most of the outcome.\n\nRetrieval keeps answers current because the index can be rebuilt when a controlled document changes. It does not guarantee correctness. A passage can be retrieved and still be the wrong revision, a draft, or a fragment without its context. For that reason the design puts most of its effort into the corpus, the permissions, and the answer contract rather than into the choice of model.\n\n## Curate the corpus: controlled, current, and revision-tagged\n\nIndex only documents the site controls. A document is eligible when it has an owner, a revision, an effective date, and a status such as approved or superseded. Drafts, personal copies, and scanned pages with poor text recognition cause most early errors. Keep superseded revisions out of the answer index, or mark them so the assistant can decline to rely on them.\n\n| Document type | Common failure | Metadata required before indexing |\n| --- | --- | --- |\n| Standard operating procedure | An old revision answers the question | Document number, revision, effective date, approver, superseded flag |\n| Equipment manual | A manual for a different model or variant | Equipment tag or model, manual revision, language |\n| Maintenance work order history | Free text with abbreviations and no context | Asset tag, work order date, failure code, closure status |\n| Piping and instrument diagram | An image with no reliable machine-readable text | Drawing number, revision, tag list, extracted text checked by a person |\n| Engineering change record | The change is not linked to the document it changed | Change number, affected document IDs, approval date |\n\n## Access control follows the source document\n\nThe assistant must never show a passage that the requesting user could not open in the source system. Carry permission labels from the document management system into the index, and filter retrieval by the identity of the user who asks. A filter applied only to the displayed answer is not enough, because the model may already have used restricted text to write the answer. Refresh permissions when source permissions change, not only on a fixed schedule. Name an owner for each permission label, following the approach in [manufacturing data governance](https://wiki.aspotomasyon.com/article/manufacturing-data-governance).\n\n- Use the requesting user's identity for every retrieval call, not a shared service account that can read everything.\n- Test permission removal: a user removed from a site group must lose access within the refresh interval the project sets.\n- Keep the index in the same security zone as its sources rather than on a more open network segment.\n\n## Citations, refusals, and hallucination control\n\nHallucination means generating content that the sources do not support. The OWASP Top 10 for LLM Applications lists misinformation as a core risk. The NIST AI Risk Management Framework (AI RMF 1.0) offers a useful vocabulary for these controls. NIST notes on its page that the framework is being revised, so check the current version before you cite it. The control itself is an answer contract. Every factual statement cites a document number, revision, and section. When no retrieved passage supports an answer, the assistant says so and returns the closest sources for a person to check, rather than guessing.\n\n1. **Require a source for each claim.** Reject any answer whose factual statements lack a citation to a retrieved passage.\n2. **State the revision.** Show the document number and revision with each citation, so the reader can open the exact version.\n3. **Refuse on weak retrieval.** When no passage is relevant enough, return no answer and a short list of likely sources.\n4. **Flag mixed evidence.** Mark answers that combine several documents or rely on a passage that a newer revision may have changed.\n\n## Read-only advisory: no writes to control systems\n\nThe assistant should answer questions, point to sources, and draft text for a person to review. It must not hold credentials or a network path that lets it change set points, modes, alarm limits, interlock settings, or work orders in any system that drives a process. Actions of that kind go through the site's management-of-change and authorization procedures. OWASP lists excessive agency, meaning more permission or autonomy than a task needs, as a separate risk, so restrict the assistant's tools to read operations and keep it off the control network.\n\nBypass, override, and safety-function decisions are outside the assistant's scope. Design, validation, and bypass decisions for safety functions belong with qualified functional-safety engineers working to the applicable standard. A language model must not be the basis for those decisions.\n\n## Prompt injection, data leakage, and audit logs\n\nRetrieved passages and work order text are untrusted input. Any document or note can contain text that attempts to override the assistant's instructions. OWASP lists prompt injection first among its risks for LLM applications, and sensitive information disclosure as another. Defensive measures include keeping system instructions separate from retrieved text, keeping secrets out of prompts, filtering output for restricted identifiers, and treating every procedure the assistant describes as draft text until a person verifies it against the source.\n\nLog each interaction for audit: the user, time, query, retrieved document IDs and revisions, the answer, and reviewer feedback. Apply the site's retention and privacy rules to the logs, because maintenance questions can reveal sensitive process details. The logs also feed the security review described in [OT security architecture: defense in depth](https://wiki.aspotomasyon.com/article/ot-security-architecture-defense-in-depth).\n\n## Evaluate with a fixed question set and human review\n\nTest each release against the same question set. Each question records the expected source document and revision and an acceptable answer shape. Reviewers score the citation, not only the fluency of the text. A change to the model, the prompt, the document chunking, or the corpus triggers a full rerun. Any answer that will guide physical work needs a qualified person's review before use.\n\n1. **Write the question set.** Include routine questions, edge cases, questions whose answer is in a superseded document, and questions the corpus cannot answer.\n2. **Record the expected answer.** Name the correct document and revision for each question, confirmed by the document owner.\n3. **Run and score.** Score each answer for correct source, correct revision, and correct refusal where no source exists.\n4. **Fix the cause, then rerun.** Correct the corpus, permissions, or prompt before changing the model, and rerun the full set.\n\n**Illustrative example**\n\nAssume a fixed set of 100 questions. The first run scores 84 answers correct on source and revision. Six answers cite a superseded revision, and ten give unsupported answers to questions the corpus cannot answer. Assume the team flags superseded documents in the index and tightens the refusal rule. The second run then scores 95 correct. These numbers are assumptions chosen to show the method, not measured results. The acceptance rule is that no answer may cite a superseded revision or make an unsupported claim.\n\n## Apply this to your project\n\n- The corpus holds only controlled documents, each with a revision, an effective date, and a superseded flag.\n- Permissions are inherited from the source system and tested with an account that lacks access.\n- Each answer cites document number, revision, and section for every factual statement, and refuses when no passage supports it.\n- The assistant has read-only tools and no network path to control, alarm, or safety systems.\n- A fixed question set with expected sources runs before each release, and the results are recorded.\n- Audit logs capture user, query, retrieved revisions, answer, and reviewer feedback, under the site retention rules.\n\n[Follow an ASP project guide](https://wiki.aspotomasyon.com/guides) to connect the fundamentals with implementation and acceptance.\n\n## Frequently asked questions\n\n### Can a language model read plant documents without leaking them?\n\nIt can, if the design controls access. Index only documents the user is allowed to open in the source system, use the requesting user's identity for each retrieval, and keep the index in the same security zone as its sources. Test with an account that lacks access, and log every retrieval for audit.\n\n### Why not fine-tune a model on our manuals instead?\n\nFine-tuning does not keep a link from each answer to the specific controlled revision, and removing a superseded procedure from a trained model is hard. Retrieval keeps the citation to a document that can be checked. Many teams start with retrieval and consider training only after the corpus and the evaluation set are stable.\n\n### How do we stop the assistant from making up procedures?\n\nRequire a citation for every factual statement, and make the assistant refuse when no retrieved passage supports the answer. Score a fixed question set that includes questions the corpus cannot answer, and treat any unsupported answer as a failure. Human review remains necessary for any answer used to perform work.\n\n### Can the assistant open a valve or change a set point?\n\nIt should not. Design the assistant as read-only and advisory, with no write path to control, alarm, or safety systems. Any process change goes through the site management-of-change and authorization procedures, and decisions about safety functions belong with qualified functional-safety engineers.\n\n### What is prompt injection, and why does it matter for documents?\n\nPrompt injection is text that tries to override the instructions given to a language model. It matters for plant documents because any document, work order, or note can contain such text. Keep retrieved text separate from instructions, restrict tool access, and never let retrieved text trigger an action without human approval.\n\n## Continue the engineering work\n\n- [AI and Machine Learning in Manufacturing: Practical Applications](https://wiki.aspotomasyon.com/article/ai-ml-industrial-applications)\n- [Augmented Reality for Industrial Maintenance and Training](https://wiki.aspotomasyon.com/article/augmented-reality-industrial-maintenance)\n- [Manufacturing Data Governance: Ownership, Quality and Lineage](https://wiki.aspotomasyon.com/article/manufacturing-data-governance)\n- [OT Security Architecture: Defense in Depth for Industrial Networks](https://wiki.aspotomasyon.com/article/ot-security-architecture-defense-in-depth)\n- [Automation Handover Package: What Operations Needs After Commissioning](https://wiki.aspotomasyon.com/article/automation-handover-documentation)\n\nBrowse the [related technical library](https://wiki.aspotomasyon.com/category/digital-transformation) or follow an [ASP project guide](https://wiki.aspotomasyon.com/guides) to plan the implementation sequence.\n\n![An industrial data workflow. Each handoff needs an owner and a documented data contract; collecting more signals alone does not establish business value.](https://wiki.aspotomasyon.com/assets/diagrams/digital-transformation-context.svg)\n\n*An industrial data workflow. Each handoff needs an owner and a documented data contract; collecting more signals alone does not establish business value.*\n\n## Primary references and further reading\n\nUse the original specifications and product documentation for implementation details. Examples in this guide are illustrative engineering scenarios, not published project results.\n\n- [NIST — Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1](https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-ai-rmf-10)\n- [NIST — AI Risk Management Framework program page](https://www.nist.gov/itl/ai-risk-management-framework)\n- [NIST — Guide to Operational Technology (OT) Security, SP 800-82 Rev. 3](https://csrc.nist.gov/pubs/sp/800/82/r3/final)\n- [OWASP Foundation — Top 10 for Large Language Model Applications](https://owasp.org/projects/top-10-for-large-language-model-applications)\n- [OWASP GenAI Security Project — LLM Top 10 list](https://genai.owasp.org/llm-top-10/)\n\n---\n\nCite the canonical article: https://wiki.aspotomasyon.com/article/llm-rag-industrial-documentation-safe-deployment (LLM Assistants for Plant Documentation: Safe RAG Deployment, ASP OTOMASYON, updated 2026-10-11).\n","headings":[{"id":"how-a-rag-assistant-answers-from-plant-documents","title":"How a RAG assistant answers from plant documents"},{"id":"curate-the-corpus-controlled-current-and-revision-tagged","title":"Curate the corpus: controlled, current, and revision-tagged"},{"id":"access-control-follows-the-source-document","title":"Access control follows the source document"},{"id":"citations-refusals-and-hallucination-control","title":"Citations, refusals, and hallucination control"},{"id":"read-only-advisory-no-writes-to-control-systems","title":"Read-only advisory: no writes to control systems"},{"id":"prompt-injection-data-leakage-and-audit-logs","title":"Prompt injection, data leakage, and audit logs"},{"id":"evaluate-with-a-fixed-question-set-and-human-review","title":"Evaluate with a fixed question set and human review"},{"id":"apply-this-to-your-project","title":"Apply this to your project"},{"id":"frequently-asked-questions","title":"Frequently asked questions"},{"id":"continue-the-engineering-work","title":"Continue the engineering work"},{"id":"primary-references-and-further-reading","title":"Primary references and further reading"}],"faq":[{"question":"Can a language model read plant documents without leaking them?","answer":"It can, if the design controls access. Index only documents the user is allowed to open in the source system, use the requesting user's identity for each retrieval, and keep the index in the same security zone as its sources. Test with an account that lacks access, and log every retrieval for audit."},{"question":"Why not fine-tune a model on our manuals instead?","answer":"Fine-tuning does not keep a link from each answer to the specific controlled revision, and removing a superseded procedure from a trained model is hard. Retrieval keeps the citation to a document that can be checked. Many teams start with retrieval and consider training only after the corpus and the evaluation set are stable."},{"question":"How do we stop the assistant from making up procedures?","answer":"Require a citation for every factual statement, and make the assistant refuse when no retrieved passage supports the answer. Score a fixed question set that includes questions the corpus cannot answer, and treat any unsupported answer as a failure. Human review remains necessary for any answer used to perform work."},{"question":"Can the assistant open a valve or change a set point?","answer":"It should not. Design the assistant as read-only and advisory, with no write path to control, alarm, or safety systems. Any process change goes through the site management-of-change and authorization procedures, and decisions about safety functions belong with qualified functional-safety engineers."},{"question":"What is prompt injection, and why does it matter for documents?","answer":"Prompt injection is text that tries to override the instructions given to a language model. It matters for plant documents because any document, work order, or note can contain such text. Keep retrieved text separate from instructions, restrict tool access, and never let retrieved text trigger an action without human approval."}],"references":[{"name":"NIST — Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1","url":"https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-ai-rmf-10"},{"name":"NIST — AI Risk Management Framework program page","url":"https://www.nist.gov/itl/ai-risk-management-framework"},{"name":"NIST — Guide to Operational Technology (OT) Security, SP 800-82 Rev. 3","url":"https://csrc.nist.gov/pubs/sp/800/82/r3/final"},{"name":"OWASP Foundation — Top 10 for Large Language Model Applications","url":"https://owasp.org/projects/top-10-for-large-language-model-applications"},{"name":"OWASP GenAI Security Project — LLM Top 10 list","url":"https://genai.owasp.org/llm-top-10/"}],"related":[{"slug":"scada-system-architecture-design-patterns","title":"SCADA System Architecture and Design Patterns","summary":"Supervisory Control and Data Acquisition (SCADA) systems form the backbone of modern industrial monitoring and control.","category":{"slug":"automation-systems","name":"Automation Systems"},"url":"https://wiki.aspotomasyon.com/article/scada-system-architecture-design-patterns","markdown_url":"https://wiki.aspotomasyon.com/article/scada-system-architecture-design-patterns.md","api_url":"https://wiki.aspotomasyon.com/api/v1/articles/scada-system-architecture-design-patterns","published":"2026-05-13T12:07:53+00:00","modified":"2026-09-13T11:07:23+00:00","reading_minutes":9,"word_count":1887,"image":"https://wiki.aspotomasyon.com/assets/social/scada-system-architecture-design-patterns-d28081d36299.png"},{"slug":"mqtt-broker-deployment","title":"MQTT Broker Deployment and Hardening","summary":"MQTT is the de facto transport for industrial IoT telemetry: lightweight publish/subscribe over TCP, ideal for the many-to-many data flows of plant-to-cloud…","category":{"slug":"modern-connectivity","name":"Modern Connectivity"},"url":"https://wiki.aspotomasyon.com/article/mqtt-broker-deployment","markdown_url":"https://wiki.aspotomasyon.com/article/mqtt-broker-deployment.md","api_url":"https://wiki.aspotomasyon.com/api/v1/articles/mqtt-broker-deployment","published":"2026-08-11T13:05:24+00:00","modified":"2026-09-13T11:07:23+00:00","reading_minutes":4,"word_count":871,"image":"https://wiki.aspotomasyon.com/assets/social/mqtt-broker-deployment-4fdd84765a13.png"},{"slug":"data-historian-selection-deployment","title":"Data Historian Selection and Deployment","summary":"A data historian is the long-term memory of an industrial plant. Where a PLC or SCADA system keeps live values in memory, a historian collects time-stamped…","category":{"slug":"digital-transformation","name":"Digital Transformation"},"url":"https://wiki.aspotomasyon.com/article/data-historian-selection-deployment","markdown_url":"https://wiki.aspotomasyon.com/article/data-historian-selection-deployment.md","api_url":"https://wiki.aspotomasyon.com/api/v1/articles/data-historian-selection-deployment","published":"2026-08-06T12:26:37+00:00","modified":"2026-09-13T11:07:23+00:00","reading_minutes":5,"word_count":954,"image":"https://wiki.aspotomasyon.com/assets/social/data-historian-selection-deployment-9daadd28e9f8.png"},{"slug":"industrial-firewalls-ids","title":"Industrial Firewalls and Intrusion Detection Deployment","summary":"Firewalls and intrusion detection are the mechanical core of OT network security: firewalls enforce the zones-and-conduits policy, and IDS/NDR systems watch…","category":{"slug":"industrial-cybersecurity","name":"Industrial Cybersecurity"},"url":"https://wiki.aspotomasyon.com/article/industrial-firewalls-ids","markdown_url":"https://wiki.aspotomasyon.com/article/industrial-firewalls-ids.md","api_url":"https://wiki.aspotomasyon.com/api/v1/articles/industrial-firewalls-ids","published":"2026-08-11T13:05:24+00:00","modified":"2026-09-13T11:07:23+00:00","reading_minutes":4,"word_count":858,"image":"https://wiki.aspotomasyon.com/assets/social/industrial-firewalls-ids-1621f25dc330.png"}],"citation":"ASP OTOMASYON. LLM Assistants for Plant Documentation: Safe RAG Deployment. Updated 2026-10-11. https://wiki.aspotomasyon.com/article/llm-rag-industrial-documentation-safe-deployment"}}