How to Use AI on Minitab and SPC Data Stored on File Shares
how to use AI on Minitab and SPC data stored on file shares
Also searched as
- ask questions about SPC data with a local LLM
- Minitab project files AI analysis on-premise
- SPC data file share natural language query
Short answer
Do not let a language model calculate Cpk. Export or parse SPC data from file shares into a normalized table, compute capability and control limits in code, and give the model tools that return those numbers plus the source file. A local open-weight model then answers questions and summarizes trends, and NTFS permissions decide which files each user can touch.
Applies to: Minitab Statistical Software project and worksheet files, CSV and Excel exports from gages, CMMs and SPC tools, held on Windows or NAS file shares. Applies to any air-gapped or on-prem environment.
Turn SPC files into a private, trustworthy assistant
- 1Inventory the shares: which folders hold Minitab projects, worksheets, CSV exports and reports, who owns them, and what naming convention (if any) ties a file to a part, characteristic and date.
- 2Decide the extraction route. Minitab's own project and worksheet formats are proprietary, so set up a scheduled export of raw data to CSV, or ask engineers to save data as CSV or Excel alongside the project. Use Minitab macros or automation for the export if your licence allows.
- 3Load the exported data into a normalized table: part, characteristic, subgroup, timestamp, value, spec limits, machine or operator, and source file path.
- 4Compute subgroup means, ranges, control limits, Cp, Cpk, Pp and Ppk, and rule violations in Python or SQL, and store the results with the formulas used.
- 5Index report text, PDFs and engineering notes locally, and serve an open-weight model with vLLM or Ollama on your GPUs.
- 6Expose tools such as get_capability, list_out_of_control_points and find_files_for_part through an MCP server; the model reports numbers returned by tools and cites the source file.
- 7Mirror NTFS or share permissions to every query, log all tool calls, and compare the assistant's numbers with Minitab for a sample of characteristics before go-live.
What is on the shares and what can be read
Typical SPC estates are messy: Minitab projects and worksheets saved by individual engineers, CSV and Excel exports from gages and CMMs, PDFs of control charts, and perhaps a database from a dedicated SPC package. Names are inconsistent and the same data may exist in three copies.
Minitab project and worksheet files are proprietary formats, so do not assume that a generic parser reads them reliably. Plan to get raw data in an open format by export, either manually saved by users or produced by scheduled automation. Where a dedicated SPC database exists, a read-only view of its measurement tables is cleaner than files.
Start by profiling: count files by type and folder, find the active ones, and pick the top 20 characteristics that matter to customers or audits. Scope the first release to those.
# PowerShell: profile the share (read-only)
Get-ChildItem -Path \\fileserver\quality\spc -Recurse -File |
Where-Object { $_.Extension -in '.mpx','.mpj','.mtw','.csv','.xlsx','.pdf' } |
Group-Object Extension |
Select-Object Name, Count# Python: capability computed in code, never by the model
import numpy as np
def cpk(values, lsl, usl):
mu, s = np.mean(values), np.std(values, ddof=1)
return min((usl - mu) / (3 * s), (mu - lsl) / (3 * s))Reference architecture
A file crawler feeds a parser and normalizer, which write to a small analytical database. A statistics service computes control limits, capability and rule violations. A tool server wraps those functions. A retrieval index covers reports and notes. A local model sits on top. An audit log records each question, tool call and number returned.
The key design rule is separation of language from arithmetic. The model chooses which tool to call and explains results in plain language. The numbers come from tested code, so a Cpk in an answer can be reproduced and checked against Minitab.
For an air-gapped site, everything runs in the enclave: crawler, database, statistics service, index and model. Updates to weights and libraries move in by controlled transfer.
Permissions on file shares
File shares have NTFS or NAS ACLs, and engineers rely on them to separate programs, customers and export-controlled work. The assistant must honor them. The crawler records each file's ACL, resolves group membership for the signed-in user at query time, and filters tools and retrieval accordingly.
Beware of the crawler account itself: it needs read access to everything it indexes, so protect it, rotate its secret and audit its use. For export-controlled programs, run a separate index and model instance inside the appropriate enclave rather than relying on filters alone.
Test by asking restricted-user questions that would reveal a protected program's measurement data.
Write-back: usually none
SPC data generally should not be changed by an assistant. Raw measurement files are evidence. The assistant can draft a summary, a control-plan note or an email to a supplier, which a person reviews. If you want it to create an NCR or a corrective action request, route that through your QMS or ERP API with a human approval step.
Never let the model edit data files, adjust spec limits or re-run capability with changed parameters without a visible, logged request from a person.
Sizing, phases and limits
SPC assistants are light. A single GPU with a 7B to 32B class model usually handles 50 to 300 users, and the numeric data is small. Document and report indexes are the main storage: tens of gigabytes for large archives. Use the calculator with your counts.
Phase one, three to six weeks: file profiling, export routine, normalized table, capability and control-chart tools. Phase two: report and note retrieval. Phase three: drafted notes and, if wanted, approved record creation in the QMS.
Limits: if your team already has a dedicated SPC package with a database, build on that rather than on file shares. Minitab itself is better for exploratory statistics. The assistant is for finding, checking and summarizing, not replacing statistical judgment.
Try it here, free
Minitab and SPC File-Share Private AI Layer Blueprint Generator
Generate a shareable architecture plan for a private, on-prem AI assistant on Minitab and SPC File-Share: components, security controls, 3-phase rollout and open questions for IT.
Common pitfalls
- !Letting the model compute Cpk or control limits from pasted numbers instead of calling tested code.
- !Assuming proprietary Minitab files can be parsed reliably without export.
- !Ignoring duplicates: the same dataset saved in several folders yields conflicting answers.
- !Indexing every folder, including export-controlled programs, into one shared index.
- !Not documenting the formulas (subgroup size, sigma estimate, constants) behind each reported number.
How an ERP-grounded AI assistant handles this
DataRay is built for this: chat over file shares and databases on-prem, with a local model. Netray adds the deterministic statistics tools for SPC, and ERPray links out-of-control characteristics to the ERP lots, work orders and suppliers they came from.
Frequently asked questions
Can an AI read Minitab project files directly?
Not reliably. Minitab project and worksheet formats are proprietary. The dependable approach is to export raw data to CSV or Excel, by scheduled automation or as a team habit, and let the assistant work from those exports plus the reports.
Why compute Cpk in code and not with the model?
Language models make arithmetic and sigma-estimation mistakes and cannot show their work. A tested function returns the same result every time, with a stated method, and you can reconcile it with Minitab output for audit purposes.
Will it respect our folder permissions?
Yes, if designed that way. The crawler stores ACLs, and at query time the tool server resolves the user's groups and filters files and results. For export-controlled work, use a separate instance in the right enclave.
Is this better than just using Minitab?
They solve different problems. Minitab is the tool for analysis. The assistant helps people find the right dataset across many folders, check capability across characteristics, and summarize trends. Use both.
Related
How to Add AI to LabWare LIMS On-Prem Without Moving Data
You can put a private AI assistant on top of LabWare LIMS by reading from a reporting replica of the LIMS database, indexing SOPs and certificates of analysis separately, and serving an open-weight model on local GPUs. The assistant calls a small set of approved read-only tools, mirrors LabWare security groups, and never writes back without a human approval step. Nothing needs to leave the lab network.
AdvancedThermo Fisher SampleManager LIMS AI Integration Without the Cloud
A private AI layer for SampleManager reads from a replica of the LIMS database, indexes SOPs, methods and attachments separately, and runs an open-weight model on local GPUs. Approved read tools sit behind an MCP or function-calling server, SampleManager roles are mirrored into every query, and any write goes through the supported application interfaces with human approval.
AdvancedHow to Add AI to IBM Maximo On-Prem Without Cloud
Use Maximo's REST API on object structures such as MXWO and MXASSET, or a read-only database replica, as the data path. Index manuals and attachments separately, serve an open-weight model locally, and let the tool server call Maximo as the signed-in user so security groups and site restrictions apply. Write-back creates draft records only, with human approval.
CIO briefingOn-Prem vs Cloud ERP AI for Regulated Manufacturers
For ITAR, CMMC, and export-controlled manufacturers, the deciding question is not on-prem versus cloud in general but whether controlled unclassified information (CUI) or export-controlled technical data ever leaves your boundary to reach an AI model. An on-prem or private-VPC-deployed AI layer keeps that data inside your control boundary; a vendor's shared cloud AI service usually does not, regardless of how the core ERP itself is hosted.
How-toHow to Send Production and Labor Reporting from MES to ERP
Treat the ERP work order as the system of record for cost and quantity, and the MES as the system of record for what physically happened. Send one confirmation message per operation (or per shift or lot) containing work order, operation sequence, good quantity, scrap quantity with reason, and labor start/stop per employee and work center, post it through the ERP's supported transaction API, and make the message idempotent so a retry never double-posts.
How-toHow to Calculate OEE from MES Data and ERP Standards
OEE equals Availability times Performance times Quality. Availability comes from MES run and stop events against planned production time, Performance compares actual output to the ideal cycle time (usually the routing standard from the ERP), and Quality is good units divided by total units. The numbers are only trustworthy if planned time, ideal cycle time and the good/scrap split are defined once and used consistently.
AI for ERPAI Agents for ERP, Running On-Prem
A practical guide to on-prem AI agents for ERP: what they can safely automate, where human approval belongs, and how to design the guardrails.
AI for ERPOn-Prem AI for ERP in Aerospace, Defense, and Electronics Manufacturing
A hub guide to on-prem AI across SAP, Infor LN, Costpoint, IFS, and Oracle EBS for aerospace, defense, and electronics manufacturers under ITAR, CMMC, and AS9100.
Stuck on Minitab and SPC data on file shares?
Talk to engineers who work inside Minitab and SPC data on file shares every week, and who build private AI that answers these questions from your own ERP data.
Keep exploring
Free tools
- Minitab and SPC File-Share Private AI Layer Blueprint GeneratorGenerate a shareable architecture plan for a private, on-prem AI assistant on Minitab and SPC File-Share: components, security controls, 3-phase rollout and open questions for IT.
- Minitab and SPC File-Share AI Assistant Sizing and Value CalculatorEstimate GPUs, tokens per day, index size, hours saved and payback for a private AI assistant on Minitab and SPC File-Share.
- SPC Control Plan WorksheetRow-by-row control plan that picks the chart type, sample size and reaction plan for each characteristic. Export to Excel.
Guides
- SyteLine Statistical Process Control (SPC) Implementation GuideImplement statistical process control in SyteLine for manufacturing quality. Configure control charts, Cpk calculations, and process monitoring in CloudSuite Industrial.
- SPC Integration with ERP Quality Modules: Closing the Loop Between Control Charts and Quality RecordsSPC integration with ERP quality modules: control charts, Cpk data flow, AS9100D compliance, SyteLine and LN quality setup, and AI-driven quality automation.
- AI-Powered Quality Management for SyteLineAutomate SyteLine quality management with AI. SPC analysis, NCR processing, CAPA management, and supplier quality for Infor CloudSuite Industrial.
Software
- MinitabMinitab explained: statistical software for Six Sigma, SPC, DOE and capability analysis in manufacturing, with integrations, strengths, limits and alternatives.
- InfinityQS ProFicientInfinityQS ProFicient explained: real-time SPC, data collection, control charts, integrations with ERP and gauges, strengths, limits and alternatives.