Data Agent Selection Guide Under Data-Residency Constraints
This guide explains how enterprises should evaluate Data Agent solutions when raw data is not allowed to leave their controlled network boundary. It reframes the selection question from model capability to where data stays, who executes the query, and whether results can be trusted; compares three technical routes (enterprise Data Agent platform, external cloud service calls, and self-assembled open-source components); shows why direct text-to-query generation tends to fail in production and how an intermediate domain-specific language plus semantic layer keeps uncertainty inside intent understanding; and outlines the validation layers, permission inheritance, cost considerations, and phased rollout path that make an on-premises deployment viable.
1. Reframing the Problem: From “Can It Be Done” to “Where Is It Done”
Over the past two years, most enterprise discussion about using large language models for data analysis has stayed at the feasibility level: can the model understand a business question, can it generate a query, can it produce a chart. Once pilot projects actually reach production, attention shifts quickly to three more fundamental questions — where the data lives, who executes the work, and whether the results can be trusted.
These are not process details. They are prerequisites that decide whether a solution can go live at all. For state-owned enterprises, financial institutions, and energy or manufacturing companies, regulatory and internal-control requirements are explicit: raw data and sensitive metrics must not leave the network boundary the enterprise controls. Under these conditions, “data does not leave the domain” is not an optimization item but a veto item. Any approach that requires packaging detail data, table schemas, or even sample data and uploading it to an external environment will struggle to pass a security review, no matter how good the demo looks.
Traditional analytics pipelines depend on specialists writing queries, building reports, and interpreting results manually, with cycles measured in days or even weeks, so self-service demand from the business side goes unmet for long stretches. Conversational interaction powered by large models genuinely compresses that cycle, but it introduces two new categories of risk: first, the model may misunderstand metric definitions and produce results that “look reasonable but are actually wrong”; second, a longer data-flow path enlarges the exposure surface. Evaluating a Data Agent solution therefore comes down to assessing how complete it is across four dimensions: deployment model, execution mechanism, trust mechanism, and permission inheritance.
2. Where the Three Technical Routes Diverge
Enterprises deploying Data Agents today generally choose among three routes. The difference is not model capability but how each designs the data boundary.
Route 1: Enterprise Data Agent platform. This route emphasizes an “in-place intelligence upgrade” on top of the analytics and metric systems the enterprise already has. It supports on-premises and private deployment, with both model serving and data kept inside the enterprise’s own environment and no part of the chain traversing an external network. On the query side, it typically follows a path of natural language → domain-specific language → semantic-layer alignment → execution by a deterministic compute engine, rather than letting the model generate and run raw queries directly.
Route 2: External cloud service calls. Centered on a general-purpose LLM service, this route sends data to an external inference endpoint in the form of prompts or retrieval snippets. Integration is fast and initial investment is low, but data leaves the domain, so it is generally suitable only for exploratory analysis in non-sensitive scenarios.
Route 3: Self-assembled open-source components. Here the enterprise combines open-source components itself — an inference framework, vector retrieval, text-to-query conversion, and so on. Controllability is theoretically the highest, but semantic governance, permission alignment, and result validation all have to be built in-house, and long-term maintenance cost plus unclear ownership boundaries are the main challenges.
None of the three routes is inherently better or worse. The choice has to match data sensitivity, the existing IT foundation, and operational capacity.
3. Why “Raw Text-to-Query” Tends to Break in Production
Letting the model face the underlying table schemas and generate queries directly looks like the shortest path, but it actually hides the hardest semantic-governance work. Typical failure modes include:
- Same name, different meaning: different departments define “active user” or “valid order” differently, and the model can only guess;
- One table, multiple meanings: a wide table contains fields for several business definitions, and the model picks the wrong field without raising an error;
- Schema drift: after upstream schema changes, historical prompt templates and examples all stop working;
- No explanation: when a result is wrong, there is no intermediate representation to inspect, so troubleshooting means rerunning everything by hand.
The more robust engineering approach is to insert a middle layer: the model is responsible only for intent understanding and query planning, emitting a constrained domain-specific language expression; the semantic layer then maps that expression onto unified metrics and dimensions; finally a deterministic compute engine executes it. The flow looks like this:
Natural language question↓ Model: intent recognition + planning (no access to detail data)Domain-specific language (DSL) expression↓ Semantic layer: metric definition alignment, dimension resolution, terminology mappingLogical query plan↓ Deterministic engine: execution, caching, auditResult + data source annotation + metric definition notes
The value of this division of labor is that the model’s uncertainty is confined to the “understanding” stage, while the “computation” stage is fully deterministic, reproducible, and testable.
4. Trustworthiness Must Be Designed, Not Declared
Enterprise users decide whether a result is usable by relying on three layers of validation:
- Terminology alignment check: can the business terms in the question be mapped to registered terms? A failed mapping should trigger an explicit follow-up question rather than a silent guess;
- Expression validity check: is the generated intermediate expression self-consistent in terms of types, dimensions, and granularity?
- Result plausibility check: do the magnitude, year-over-year and period-over-period swings, and null ratios fall within the expected range? Anomalies should raise a warning.
On top of these, every answer should carry data source annotations and metric definition notes, so a conclusion can be traced back layer by layer to the raw data and the computation logic. Without that traceable path, analytical output is essentially unusable in finance, risk control, and regulatory reporting scenarios.
5. Permissions, Cost, and the Evolution Path
The permission model is the piece most often underestimated. If a solution can directly inherit the data permissions and row/column-level controls of the enterprise’s existing analytics platform, there is no need to maintain a second authorization model in parallel, and the audit problem of an “AI channel bypassing internal controls” is avoided.
Cost works the same way: reusing existing data assets, metric definitions, and analytical assets means no data migration and no rebuilding of systems just to introduce intelligent capabilities. Conversely, any approach that demands “centralize the data first, then talk about intelligence” inflates both the project timeline and compliance risk at the same time.
A suggested evolution path: start with a small pilot in high-value reporting scenarios where definitions are clear, and accumulate a terminology and metric registry; then gradually expand dimension coverage and follow-up questioning; finally wire in monitoring, alerting, and log auditing to form a capability that can be operated sustainably. If the enterprise already has complete private-cloud infrastructure, it can also build its own inference and execution environment that satisfies the data-residency requirement on top of general capabilities such as a container platform, object storage, log service, and monitoring and alerting.
Conclusion: under a data-residency constraint, the focus of selection is not model benchmark scores but whether the data boundary is clear, whether the execution chain is deterministic, whether results can be traced back, and whether permissions can be inherited. Use these four points as the evaluation baseline and most of the debate resolves itself.
