VaultRAG: Voice-First Retrieval
for Manufacturing Documentation
average unplanned downtime cost, general manufacturing
attributable to human error and procedure misapplication
voice query to cited procedure, at the point of need
Manufacturing facilities carry tens of thousands of pages of equipment manuals, ISO-controlled SOPs, and non-conformance records — but the constraint is not documentation volume, it is retrieval at the point of need. A technician on a live production floor, hands occupied, in 85–95dB ambient noise, with degraded mobile signal, cannot open a 380-page PDF. The commercially visible fix — cloud-hosted RAG — is architecturally excluded for exactly the manufacturers who need it most: Tier-2 and Tier-3 suppliers operating under ITAR, NDA, and ISO 27001 data governance clauses that prohibit routing proprietary process documentation through third-party APIs.
VaultRAG is a voice-first retrieval-augmented generation system built around a five-layer guardrail pipeline (query normalisation, scope guarding, confidence thresholding, safety flagging, citation enforcement) designed to fail closed rather than hallucinate a procedure in a safety-critical context. The build-phase implementation runs on Google Cloud — Gemini 3 Flash-Lite and Flash via Vertex AI, Firestore Vector Search for retrieval, Cloud Run for the API layer — under a $0-target Blaze budget in europe-west2. The documented production path is Gemini on Google Distributed Cloud air-gapped: the same architecture, with zero network egress after deployment, for facilities where that constraint is not negotiable.
§1 Problem Statement
Manufacturing facilities carry extensive technical documentation. The documented constraint is not the absence of knowledge — it is the absence of infrastructure capable of surfacing that knowledge at the point of need, within the data governance boundaries the operating environment requires. This section defines the business and human dimensions of that constraint, with sourced benchmarks.
The figures below are cited from primary research and establish the scale of the constraint the architecture addresses — not projections.
| Metric | Value | Detail | Source |
|---|---|---|---|
| Downtime cost | $260K/hr | Average unplanned downtime, general manufacturing. Automotive up to $2.3M/hr. | Aberdeen Group via Oxmaint, 2024 |
| Unplanned downtime | 800 hrs/yr | Typical manufacturer, ≈15 hrs/week | Siemens True Cost of Downtime, 2024 |
| Human error share | 23% | Of unplanned stoppages — incorrect procedure, missed steps | ABB / Plutomen, 2024 |
| Information search time | 1.8 hrs/day | ≈23% of productive hours spent locating information | McKinsey via Copernic, 2025 |
| Quality problems from human error | 33% | Scrap, rework, defective output | American Society for Quality (ASQ) |
| Global downtime loss | $1.4T/yr | World's 500 largest manufacturers, ≈11% of revenue | Siemens, 2024 |
| Document search time | 18 min | Average time to locate one document, office conditions | Gartner via M-Files, 2025 |
Business and compliance dimension. A representative mid-size manufacturer in the FlexForm scenario maintains 12,000–40,000 pages of equipment manuals, ISO-controlled SOPs, non-conformance reports, calibration records, and LOTO procedures — organised on a shared drive, in a binder near the supervisor's desk, or in the tacit knowledge of engineers who have since left. The documentation corpus is extensive. The retrieval capability is not.
Cloud-based retrieval tools — the commercially visible solution — are architecturally incompatible with this environment. Aerospace, automotive, and defence supply chain manufacturers operate under NDA, ITAR, and ISO 27001 requirements that prohibit routing proprietary process documentation through third-party APIs, Google's Gemini API included when called over the public internet. The retrieval pattern that resolves the problem cannot be applied in the environments where the problem is most acute — which is the architectural case for the on-prem, GDC air-gapped production path documented in §6.
Human factors dimension. In the FlexForm scenario, a technician with eleven years of floor experience encounters an E-04 fault on the Line 3 CNC at 07:14 on a Tuesday. The line stops. Shop-floor mobile signal is insufficient for network queries. The relevant service manual — 380 pages, last updated 2022 — is on a laptop in the supervisor's office, forty metres away, during a shift briefing.
This is not a competence failure. It is a capable professional operating without an information system adequate to the physical and time constraints of the environment. The documentation existed. The knowledge existed. The retrieval infrastructure did not.
These are not edge cases. They represent the daily operational reality of a facility lacking a retrieval capability matched to the floor environment and its governance requirements.
A composite of published maintenance shift patterns. The persona and facility belong to the FlexForm design scenario; the cost figures are drawn from cited benchmarks.
| Time | Event | Detail | Cost |
|---|---|---|---|
| 06:50 | Shift briefing | Night shift flags intermittent spindle noise on Line 3 CNC, verbally, no fault code recorded. | — |
| 07:14 | E-04 fault — Line 3 stops | Mobile signal insufficient; supervisor's laptop is in a briefing. Technician queries a colleague from memory. | $4,333/min clock starts |
| 07:16–07:28 | Procedure reconstructed | 12 min cross-referencing two technicians' recall. Spindle bearing torque spec (45 Nm) misremembered as 40 Nm. | — |
| 07:31 | Fault cleared — line restarts | 17 min downtime. Torque error undetected. | ≈$73,700 |
| 09:48 | E-04 returns | Bearing migrated under load; secondary vibration. Escalated to engineering — 34 more minutes to root cause. | +$147,400 |
| 14:30 | NCR raised | 51 total minutes downtime; incorrect procedure application documented; retraining specified. | — |
| Shift total | ≈$221,100 direct cost | Excludes NCR processing, rework, and retraining. The 45 Nm spec was on page 247 of the manual in the supervisor's office. | 51 min downtime |
Illustrative for a 500-person facility, not a projection for any specific operation. All inputs are sourced.
| Sector | Hourly cost | Incidents/mo | Avg. duration | Source |
|---|---|---|---|---|
| Automotive (OEM) | $2.3M | 25/month | ~4 hrs | Aberdeen/Oxmaint 2024 |
| General manufacturing | $260K | 65% face monthly | ~4 hrs | Aberdeen Group |
| Mid-size plant (any sector) | $125K | 2/3 experience monthly | ~4 hrs | ABB Value of Reliability 2024 |
| Consumer goods | $39K | Variable | Variable | Sumitomo/Aberdeen 2025 |
| All U.S. manufacturing | $50B/yr | 800 hrs/yr avg | Industry-wide | Forbes/TeamSense 2026 |
| Error category | Proportion | Manifestation | Source |
|---|---|---|---|
| Downtime from human error | 23% | Wrong procedures, missed maintenance steps | ABB via DocuClipper 2025 |
| Quality problems from human error | 33% | Scrap, rework, defective product | ASQ |
| Errors from procedure/training failure | 40% | Incorrect or missing procedural knowledge | DoD root cause standard |
| Global losses from human error | $10B/yr | Direct financial impact, all sectors | Deloitte via Orca Lean |
The comparison below frames current state against the target architecture — not as a product claim, but as a statement of which constraints the pattern is designed to address.
§2 Pipeline Overview
VaultRAG runs a voice query through a five-layer guardrail pipeline before generation, and a separate ingestion pipeline handles document intake ahead of retrieval. Both are shown below as a single architecture, build-phase stack labelled throughout.
§3 Pipeline Components
Two mechanisms carry the retrieval quality claim: the retrieval fundamentals (how a query becomes a ranked set of chunks) and the guardrail layers (what stops a weak match from becoming a generated answer). Both are documented here at the level a reviewer would need to reproduce or audit them.
| Term | Definition | VaultRAG specifics |
|---|---|---|
| RAG | Retrieves relevant passages before generation, rather than generating from training data alone. | Custom orchestration on Cloud Run — no third-party RAG framework in the request path. |
| Embedding | Numerical vector capturing semantic meaning; similar texts land close together. | gemini-embedding-001 via Vertex AI, applied to both documents (ingestion) and queries (runtime). |
| Vector store | Database optimised for storing and searching embedding vectors. | Firestore Vector Search (GA) — KNN, billed per read, no always-on index endpoint cost. |
| Cosine similarity | Similarity measure between two vectors, −1 to 1. | Query vs. chunk embeddings at retrieval. G3 requires a minimum score of 0.70. |
| Chunking | Splitting a document into retrievable units before embedding. | Procedural section chunking — splits at heading/procedure boundaries so a complete procedure is one retrievable unit, not an arbitrary token window. |
| Top-k retrieval | Returns the k most similar chunks for a query. | k=3 from Firestore Vector Search, injected into the Gemini 3 Flash context alongside the system prompt. |
Each layer is a checkpoint, not a filter. The pipeline is designed to fail closed: when confidence is insufficient, when scope is violated, or when a citation can't be produced, the system refuses with a clear reason rather than generating a plausible-sounding but ungrounded answer.
| Layer | Position | Trigger condition | Action |
|---|---|---|---|
| G1 · Query Normaliser | Pre-retrieval | Always runs on raw voice transcription | Cleans filler words, mishearing, and jargon into a well-formed query via Gemini 3 Flash-Lite. |
| G2 · Scope Guard | Pre-retrieval | Top-1 similarity < 0.30 | Refuses immediately, before spending retrieval budget on an out-of-corpus query. |
| G3 · Confidence Threshold | Post-retrieval | Best chunk similarity < 0.70 | Refuses rather than generating from a weakly-matched chunk. |
| G4 · Safety Flag | Pre-generation | LOTO, high voltage, pressure vessel, hazardous material keywords in retrieved chunks | Prepends a mandatory safety warning; citation must include the full procedure reference. |
| G5 · Citation Enforcer | Post-generation | No source reference in the generated output | Retries once with a stricter prompt; blocks and refuses if the retry also fails. |
§4 Pipeline Simulator
Four reference scenarios, each scripted to demonstrate a specific guardrail firing condition against real pipeline timings. This runs entirely client-side — no live backend call — which is a deliberate choice at this build stage, not a limitation papered over: it keeps the demo's zero-exfiltration story honest while the Cloud Run backend is built out (§6), and it's the same pattern AlignR's own simulator uses for the same reason.
// select a scenario and run simulation