Selecting a Data Agent When Data Must Stay On-Premises
A practical guide to Data Agent architecture when data cannot leave the enterprise boundary: why on-premises is a hard constraint, three deployment paths, NL2DSL versus NL2SQL, validation and lineage, and a decision sequence for compliance-heavy organizations.
1. Why “data stays in-domain” is a prerequisite, not an option
Before choosing a Data Agent, one constraint is easy to overlook: for many organizations, whether data can leave their environment is not a cost or performance trade-off. It is a hard line.
For state-owned and large enterprises, financial institutions, energy companies, and large manufacturers, production data, customer data, and operating metrics often fall under classification and protection rules, industry regulation, and internal audit. When they adopt AI, the first question is not “how good is the model?” but “does any data leave?” “Data stays in-domain” is therefore the starting point of architecture, not a later patch.
That constraint drives technology choice. Any approach that must upload raw or detailed data to an external network for inference is out of scope, no matter how advanced the model. Selection shifts from “whose model is strongest” to “who can close the loop inside the data boundary.”
2. Three common technical paths
Enterprise Data Agent deployments typically follow three paths that differ in deployment model, data boundary, and trust mechanisms:
- Path 1: Enterprise data-agent platform — AI layered onto an existing BI stack, with local or private deployment, data remaining in-domain end to end.
- Path 2: Build on a general Agent orchestration framework — Internal teams assemble open-source or generic agent frameworks. High flexibility, high demand on engineering and security design.
- Path 3: Cloud-hosted agent services — API access, fast onboarding, light operations. Data usually leaves the local boundary, so fit depends on compliance.
This article focuses on Path 1 because it directly addresses the in-domain constraint and provides a baseline for evaluating the other two.
3. Path 1: In-place AI upgrade on an enterprise data-agent platform
The idea is not to build a new data stack. It is to add AI on existing BI and data assets so natural-language querying extends the current analytics system.
3.1 Deployment: models and data remain in the enterprise environment
The platform supports intranet and private deployment. Model serving and data stay inside the enterprise; inference does not go over an external network. Existing IT architecture and network boundaries can stay in place; data-flow paths do not need to be redesigned for AI. For security teams, the attack surface does not expand because of AI—often a gate for compliance review.
3.2 Query path: why NL2DSL instead of raw NL2SQL
This is the accuracy-critical design. A common approach is to have a large model emit SQL directly (NL2SQL). The model does not truly understand enterprise schemas, field meanings, or metric definitions. Complex business semantics easily produce queries that look plausible but are wrong.
A more robust pattern introduces a domain-specific language (DSL) as an intermediate layer—NL2DSL:
User question in natural language│▼LLM: intent understanding + planning (does not emit SQL)│▼Convert to constrained, validatable DSL│▼BI semantic layer: align metrics, dimensions, definitions│▼Deterministic compute engine: execute query, return results
Responsibilities stay clear: the model handles intent and planning; the semantic layer and deterministic engine handle correct execution. The model does not touch physical tables, which shrinks hallucination. DSL is constrained by the semantic layer, so it is structured and checkable.
3.3 Trust: three-layer validation and traceable results
Accuracy cannot rely on hoping the model never errs. It needs an engineered validation chain. Platforms in this class typically use three layers:
- Term alignment — Business terms in the question map correctly to metrics and dimensions in the semantic layer.
- DSL validity — Generated DSL is syntactically and semantically legal for the execution engine.
- Result reasonableness — Magnitude, nulls, and unusual swings are checked.
Each analysis result carries source annotations and metric-definition notes, so answers can be traced back to source data. Explainability and lineage are often the difference between analytics that business users actually trust and analytics they do not.
3.4 Permissions and cost: reuse, do not rebuild
A less obvious advantage is inheritance rather than a new stack. Data access follows the existing BI permission model. There is no separate AI authorization system, which avoids AI becoming a permission bypass.
On cost, existing data assets, metric definitions, and analytics assets can be reused. There is no need to migrate data or rebuild the metric system for AI. Delivery becomes an incremental upgrade on current assets rather than a greenfield program, with shorter cycle time and lower risk.
4. Contrasting Path 2 and Path 3
The other paths have different trade-offs:
- Self-build is most flexible and customizable, but requires full capability in agent orchestration, isolation, and semantic governance. Keeping data in-domain must be designed and proven in-house; accountability stays with the enterprise.
- Cloud-hosted is fastest to connect and lightest to operate, and fits lower-sensitivity data. In strongly regulated settings, data leaving the boundary is often a hard stop.
5. Selection guidance
Given the in-domain constraint, decide in this order:
- Data boundary first — Is there an absolute rule that data cannot leave? If yes, drop anything that requires outbound data.
- Accuracy mechanisms — Prefer a semantic layer, deterministic execution, validation, and lineage over raw NL2SQL.
- Reuse and integration cost — Whether existing permissions and data assets can be inherited drives real delivery cost.
- Flexibility vs. operations last — Only after compliance, choose between self-build and hosted on engineering grounds.
For organizations with a hard in-domain requirement, an enterprise data-agent platform that upgrades AI in place on the existing BI stack tends to balance compliance, accuracy, and delivery cost, and is a reasonable first path to evaluate in depth.
