# AI for Databricks in Manufacturing: Lakehouse Data From ERP, MES and the Line

> Source: https://netray.co/erp-ai/databricks-ai-for-manufacturing
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: AI for ERP

## Short answer

Databricks AI for manufacturing uses a lakehouse that holds ERP, MES and sensor data under Unity Catalog, then answers questions in plain English with the generated SQL shown. Genie spaces cover this inside Databricks; a private layer applies where models must run outside a public cloud or data cannot land there.

## Kind

platform

## Erp Family

mfg-systems

## Erp Products

- Databricks

## Industries

- Manufacturing
- Aerospace
- Electronics

## Region

Global

## Persona

Data Platform Lead

## Eyebrow

Databricks + ERP + AI

## Intro

Databricks tends to enter a manufacturer through the data science door. A team wants to predict machine failures from vibration data, forecast demand beyond what the ERP's planning module does, or combine process data with quality results. Sensor streams, historian exports and MES events land as Delta tables, and ERP extracts join them so that a lot number in the quality system matches a purchase receipt in the ERP.

That combination is exactly what manufacturers cannot easily get elsewhere, and it is valuable. The difficulty is access. Notebooks and SQL warehouses serve data engineers, not planners or quality managers. The tables are big, the schemas reflect source systems rather than business concepts, and ERP columns need translating before anyone can ask a sensible question.

Databricks offers Genie, which answers questions over curated tables with instructions and sample queries, and Mosaic AI Model Serving for hosting models. For teams already on the platform and allowed to use it, these are the natural first step. Databricks is a cloud platform on AWS, Azure or GCP, with compute in the customer's cloud account, which is not enough for every air-gapped or export-controlled plant.

This page covers where AI on Databricks is useful for manufacturers, what governance and data modelling it needs, how it differs from classic BI, and when an on-prem alternative or simply a better-modelled warehouse is the honest recommendation.

## Pain Points

### Schemas follow the source system, not the business

**Detail:** Bronze tables mirror ERP and MES structures with cryptic columns. Without curated silver and gold layers, questions return confident but wrong answers.

### Time-series and transactional data do not align by default

**Detail:** Joining machine events with ERP work orders needs clock alignment, work center mapping and lot genealogy, which is real engineering.

### Governance gaps between teams

**Detail:** Data science notebooks, BI users and AI assistants each reach data differently. Unity Catalog helps only when grants, masks and lineage are actually maintained.

### Compute cost for exploratory use

**Detail:** Open-ended natural-language access on large Delta tables can run up serverless or cluster costs without limits and sensible table design.

### Cloud platform, restricted data

**Detail:** Controlled technical data and some defense records may not be permitted on a public-cloud lakehouse regardless of the customer's own account ownership.

## Use Cases

### Natural-language questions over curated gold tables

**Description:** Users ask about scrap by routing, supplier delivery performance or backlog. The layer maps to curated tables, generates SQL, and shows the query with the result.

**Erp Objects:** Gold tables from ERP work orders, receipts, sales orders and BOMs

**Outcome:** Reduces ad hoc data-team requests for questions the gold layer already supports.

### Machine event to ERP order correlation

**Description:** A quality engineer asks which orders ran on a machine during a drift window. The layer joins MES or historian events with ERP work orders and lots.

**Erp Objects:** Historian or MES event tables, ERP work orders, lot genealogy

**Outcome:** Faster scoping of containment, with the join logic visible for verification.

### Predictive maintenance explanation

**Description:** When a model flags an asset, the assistant summarizes recent sensor trends, work orders and parts history so the maintenance planner sees the context.

**Erp Objects:** Sensor tables, CMMS or ERP maintenance work orders, spare parts consumption

**Outcome:** Predictions reach planners with context instead of a bare score.

### Table and column documentation

**Description:** The assistant profiles bronze and silver tables, proposes comments and descriptions in Unity Catalog, and flags undocumented columns for owners to confirm.

**Erp Objects:** Unity Catalog metadata, column samples, lineage

**Outcome:** Better metadata for both humans and any model reading the catalog.

### Pipeline failure triage

**Description:** The assistant reads Lakeflow or Delta Live Tables event logs and job runs to explain failures and data freshness gaps.

**Erp Objects:** Pipeline event logs, job run history, Auto Loader state

**Outcome:** Shorter path from stale data to a known cause.

### Demand and inventory question support

**Description:** Planners ask why a forecast moved, with the layer pulling the model's inputs, recent orders and inventory position into one explanation.

**Erp Objects:** Forecast tables, sales history, inventory snapshots

**Outcome:** Forecasts become explainable, which helps planners trust or override them.

### Document and data answers

**Description:** Quality procedures, supplier contracts and lake tables are combined so answers cite both the numbers and the governing document.

**Erp Objects:** Supplier and quality tables, contract and procedure documents

**Outcome:** Answers carry both the data and the rule it should be judged against.

## Architecture

**Overview:** Inside Databricks, Genie works on curated tables under Unity Catalog. A private layer connects through a read-only SQL warehouse or the SQL connector, reuses the same curated definitions, and serves its model on infrastructure the customer controls.

**Layers:**

#### Lakehouse connector

**Detail:** Connects through the Databricks SQL connector or SQL Statement API with a service principal mapped to the asking user's grants, so Unity Catalog permissions, row filters and column masks apply.

#### Curated layer

**Detail:** Silver and gold Delta tables with business names, comments, constraints and agreed joins, built from ERP, MES and sensor sources.

#### Model serving

**Detail:** Either Mosaic AI Model Serving inside Databricks, or an open-weight model such as Llama, Qwen or gpt-oss served with vLLM on customer GPUs, with only query results crossing the boundary.

#### Retrieval

**Detail:** Vector search over documents inside Databricks or a private index, combined with SQL answers when a question needs both.

#### Governance and audit

**Detail:** Query history, lineage and per-user logs show what was asked and what was read, with approval for any non-read action.

## Deployment Options

### Inside Databricks with Genie

**Fit:** Teams already on Databricks whose policy allows it and whose gold tables are in good shape.

**Detail:** Genie spaces with instructions and sample queries over curated tables. Often the right first step.

### Private model, lakehouse as source

**Fit:** Companies that need the language model outside a hosted service.

**Detail:** A read-only connector pulls masked query results to a model on customer GPUs or a private cloud, with a documented record of what is sent.

### On-prem data platform

**Fit:** Plants whose restricted data cannot reside in a public-cloud lakehouse.

**Detail:** The same curated-layer approach on an on-prem database or Spark environment, with Databricks used only for non-restricted workloads.

## Compliance

### AI queries run under mapped identities so the same access controls apply as for any SQL user.

**Framework:** Unity Catalog grants, row filters and column masks

### If controlled data may not reside on a public-cloud lakehouse, it stays in an environment the customer controls; classification and placement remain the customer's decisions.

**Framework:** ITAR and EAR technical data

### Workspace region selection plus a private model deployment help meet residency requirements the customer has set.

**Framework:** Data residency

### Query history and lineage let quality and finance trace any cited figure back to its source tables.

**Framework:** Audit trails

## Integration Notes

- ERP data typically lands through Auto Loader, Lakeflow Connect, partner tools such as Fivetran, or SAP Datasphere exports into Delta tables.
- Sensor and historian data arrives via streaming ingestion from OPC UA gateways, MQTT brokers or historian exports into bronze tables.
- Build silver and gold layers with business names and column comments before pointing any assistant at the data.
- Genie quality depends on curated tables, instructions, sample SQL and certified queries; budget time for this.
- Use a small dedicated SQL warehouse with auto-stop and query timeouts for AI access to control spend.
- Lot genealogy and work center mapping are required to join machine events to ERP orders correctly.
- Record freshness per table and display it with each answer.

## Product Fit

### DataRay

**Why:** Chat with lakehouse tables, documents and file shares in one place, on-prem or in a private cloud, with the SQL shown.

### Custom build

**Why:** Predictive maintenance explanation, ERP and MES correlation and agents across systems are typically bespoke work.

## Engagement

### Discovery

**Duration:** 2-4 weeks

**Deliverables:**

- Review of ingestion, layers and Unity Catalog setup
- Data classification and placement check
- Ranked question list
- Genie versus private layer recommendation

### Pilot

**Duration:** 6-8 weeks

**Deliverables:**

- Curated tables for one domain
- Read-only access and masking review
- 3-5 question patterns live
- Accuracy and cost review

### Production

**Duration:** 4-6 weeks

**Deliverables:**

- Identity mapping and audit logging
- Cost guardrails
- Runbook for extending curated tables
- Handoff to the data team

### Scale

**Duration:** Ongoing

**Deliverables:**

- More domains and plants
- Document retrieval
- Quarterly accuracy review
- Model refresh

## Buyer Questions

- Do Unity Catalog row filters and column masks apply to every AI query?
- Are our gold tables ready, or is data modelling the real first project?
- When is Genie enough and when would we need more?
- How do you join machine events to ERP orders reliably?
- How are compute costs capped for open-ended questions?
- Is restricted data allowed on this platform at all?
- Where does the model run and what leaves Databricks?
- What do we keep if we stop?

## Faq

### Is Genie enough for us?

**Answer:** If your curated tables are solid, your policy allows Databricks-hosted AI, and questions stay within the lakehouse, Genie may be enough. A private layer adds models outside a hosted service, restricted-data handling and cross-source or document questions.

### What should be done before adding AI?

**Answer:** Build curated silver and gold layers with business names, comments and agreed joins. Models answer well over clean business tables and poorly over raw ERP mirrors. Expect the data modelling to take more effort than the AI itself.

### Can it link sensor data with ERP orders?

**Answer:** Yes, if the mapping exists: machine to work center, timestamps aligned, and lot genealogy captured. We treat that mapping as a deliverable, and the join logic is shown with each answer so engineers can verify it.

### Is this a replacement for our data science work?

**Answer:** No. Forecasting and predictive models stay with your data science team. The layer helps people ask questions of the results and the data behind them, and explains model outputs with context.

### How is access controlled?

**Answer:** Through Unity Catalog. Queries run under mapped identities so grants, row filters and masks apply. We test with users in different roles and compare results to what each can see in SQL directly.

### Can controlled data live on Databricks?

**Answer:** That is for your compliance team to decide. Databricks runs on public cloud infrastructure, even in your own account. If controlled data cannot be there, keep it in an environment you control and use the lakehouse for the rest.

### Can the AI change ERP data?

**Answer:** No direct writes. It can draft recommendations or messages. Anything that changes ERP records goes through the ERP's workflow with a person approving it.

## Search terms

Databricks AI for manufacturing, Databricks Genie ERP data, Databricks lakehouse manufacturing, Databricks SAP data AI, Databricks predictive maintenance ERP, natural language query Databricks, Unity Catalog AI governance, private LLM Databricks, chat with lakehouse data, Databricks MES data, Databricks IIoT ERP, Databricks alternative on-prem AI

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
