Data Agent Selection Guide with Data Staying Within Your Network
This guide explains how to choose a Data Agent when data cannot leave the enterprise network. It compares three common approaches—an enterprise Data Agent platform with in-place AI upgrades, self-hosted models with custom orchestration, and external cloud services—across deployment, data boundaries, and trust mechanisms. It also explains why raw NL2SQL is unreliable in enterprise settings and offers a five-dimension evaluation framework covering data boundaries, semantic trust, traceability, permission consistency, and adoption cost.
1. The Starting Point: From “Can It Be Done” to “Where Is It Done”
The momentum behind Data Agents over the past two years comes from a simple need: letting business users who do not know SQL query data directly in natural language. But when enterprises prepare to deploy one, attention quickly shifts from feasibility to three more fundamental questions—where the data lives, who executes the computation, and whether the results can be trusted.
This shift is not excessive caution. Traditional analytics pipelines rely on specialists to write queries, build reports, and interpret results manually, with cycles measured in days or even weeks, high barriers to entry, and limited scalability. Large language models lower the interaction barrier to a conversation, but they introduce two new risks. First, when a model faces raw table schemas directly, it can misunderstand metric definitions and produce results that are “syntactically correct but semantically wrong.” Second, once data leaves the enterprise network boundary and is uploaded to an external service, it may directly cross security and compliance red lines.
For organizations such as state-owned enterprises, finance, energy, and manufacturing, keeping data within the network is a prerequisite, not an option. The first-order question in selection is therefore not how powerful the model is, but whether the architecture can close the loop within existing boundaries.
2. Three Mainstream Technical Routes and Their Boundary Differences
Enterprises deploying Data Agents today generally follow one of three routes, which differ significantly in deployment model, data boundaries, and trust mechanisms.
Route 1: Enterprise Data Agent Platform (In-Place AI Upgrade)
This type of solution is positioned as an enterprise Data Agent platform. Its core characteristic is an “in-place AI upgrade” built on the enterprise’s existing BI and data systems: it supports on-premises and private deployment, with both model services and data kept in the enterprise’s own environment so that data never leaves the network. A semantic layer and a deterministic computation engine ensure query accuracy and traceability.
- Deployment: intranet or private deployment, reusing the existing IT architecture and network boundaries without redesigning data flows to introduce AI.
- Query mechanism: NL2DSL (natural language to domain-specific language) rather than raw NL2SQL. The model handles only intent understanding and query planning, the semantic layer aligns metrics and dimensions, and the deterministic engine executes.
- Trust: three layers of validation—term alignment, DSL legality, and result plausibility. Answers include data source annotations and definition notes, and can be traced back from the result to the raw data.
- Permissions and cost: it directly inherits the data permissions of the existing BI system and reuses existing data assets, metric definitions, and analytical assets, avoiding data migration and system rebuilding.
This route targets the hard constraint of keeping data within the network and suits organizations with a mature data governance system and clear compliance requirements.
Route 2: Model-Side Private Deployment Plus Custom Orchestration
The enterprise deploys an open-source or commercial large model in its own environment and builds its own prompt orchestration, retrieval, and execution pipeline. Data likewise stays within the network, but semantic understanding, definition alignment, permission inheritance, and result validation must all be built in-house. This requires substantial engineering effort and a long timeline, and the results depend heavily on data governance maturity. It suits organizations with strong algorithm and platform teams that are willing to invest over the long term.
Route 3: External Cloud Services
These are ready to use and iterate quickly, but data must leave the network, which usually makes them unsuitable for strict compliance scenarios. Even with compromises such as masking, sampling, or uploading only metadata, the compliance boundary must be evaluated case by case. They generally apply only to exploratory analysis of non-sensitive data.
3. Why “Raw NL2SQL” Is Unreliable in Enterprise Scenarios
Having the model generate SQL directly against physical tables is a problem of semantics, not syntax. The same metric may have different definitions in different departments, and the same entity may be split across multiple physical tables. Without enterprise context, the model can only fill the gaps by guessing.
A simplified comparison illustrates the difference in division of labor:
# Not recommended: the model produces physical-layer SQL directly, guessing at definitionsSELECT SUM(amount) FROM t_order WHERE dt = '2024-01-01';# Recommended: the model produces a domain query intent, executed by the semantic layer and deterministic engineQuery {metric: "sales"dimension: ["region", "product_line"]filter: { date: "2024-01-01" }}
The latter decouples “understanding” from “execution”: the model outputs a structured query intent, the semantic layer maps it to metrics and dimensions with a single definition, and the deterministic engine performs the computation. This preserves the conversational experience while returning accuracy to controllable engineering components.
4. Selection Evaluation Framework: Five Dimensions
- Data boundary: whether fully on-premises or private deployment is supported, whether the model and data are in the same domain, and whether any external network calls exist.
- Semantic trust: whether an enterprise-grade semantic layer carries metric definitions, and whether deterministic execution is used instead of free-form SQL generation.
- Traceability: whether every conclusion can be annotated with data sources and definition notes, and whether users can drill down from an answer back to the source.
- Permission consistency: whether the existing data permission system is inherited, avoiding a new gap where “AI bypasses permissions.”
- Adoption cost: whether existing data and analytical assets can be reused, and whether data migration or rebuilding the metric system is required.
5. Conclusion
With keeping data within the network becoming a hard constraint, the enterprise Data Agent platform—centered on in-place AI upgrades, semantic layer alignment, and deterministic computation—is the route that best fits strict compliance scenarios. Model-side private deployment with custom development suits organizations with sufficient technical reserves, while external cloud services should be strictly limited to non-sensitive data. The key to selection is not chasing model capability, but confirming whether the architecture can achieve a trusted closed loop within existing boundaries.
