Data Agent Architecture and Selection Under Data Residency Constraints: Build Paths, Evaluation Criteria, and Rollout Practices

    Enterprise analytics is shifting from specialist-driven SQL and BI workflows to conversational Data Agents that let business users obtain insights in natural language. For regulated organizations, however, deployment boundaries come before model capability: when data must remain inside the enterprise boundary, public-cloud-only designs are often rejected during security review. This article compares three practical build paths—adding an AI conversation layer to an existing BI system, self-building on open-source agent frameworks, and using public cloud managed services—and examines their deployment models, query mechanisms, trust controls, permission inheritance, and engineering costs. It then proposes five selection criteria and a phased rollout approach. The central conclusion is that model capability sets the upper bound of a Data Agent, while the semantic layer and engineering governance determine its trustworthy lower bound.

    1. Background: Data Analytics Is Moving from Specialized Tools to Conversational Intelligence

    For more than a decade, the basic paradigm of enterprise data analytics has not changed fundamentally. A business team submits a request; the data team writes SQL, builds reports, and performs manual interpretation. This entire chain is long, has a high barrier to entry, and depends heavily on a small number of specialists. A one-off data request from the business often goes through requirement clarification, scheduling and development, and validation of metric definitions. By the time the result is delivered, the decision window may already have closed.

    The maturation of large language models is changing this paradigm. Capabilities such as natural-language data querying, automatic report generation, and automatic anomaly alerts are collectively referred to as Data Agents. Their core value is to let business users obtain data insights directly through conversation, greatly shortening the path from request to answer.

    Once enterprises try to implement them, however, the questions quickly become practical: Where is the data stored? Who performs the computation? Are the generated results trustworthy? For organizations in finance, energy, manufacturing, and other sectors with explicit data-security and compliance requirements, keeping data within its domain is a precondition rather than an option. Any approach that requires uploading data to an external cloud environment—regardless of how strong its results may be—will be rejected outright in security review.

    Therefore, any discussion of Data Agent selection must begin with deployment boundaries before it addresses the upper limit of capabilities.

    2. Three Main Build Paths

    Path 1: Enterprise Data Agent Platform—Upgrade in Place on an Existing BI System

    The idea behind this path is not to build a separate stack, but to add an AI conversation layer on top of the enterprise’s existing BI system.

    In terms of deployment, platforms in this category support intranet and private deployment. Model services and data remain within the enterprise’s own environment and do not traverse external networks. The enterprise does not need to redesign its data flows to introduce AI; it can continue to use its existing IT architecture and network boundary. This is highly compatible with security review.

    For querying, such platforms generally use NL2DSL (natural language to domain-specific language) rather than raw NL2SQL. The execution flow is as follows:

    1. User question → LLM interprets intent and plans
    2. → Generates a domain-specific language (DSL)
    3. → Semantic layer aligns metric and dimension definitions
    4. → Deterministic compute engine executes
    5. → Returns results with source annotations

    The value of this division of labor is that the model is responsible only for understanding the question, not for directly manipulating data. The semantic layer carries the enterprise’s accumulated metric definitions, dimension structures, and business terminology, while the compute engine provides deterministic execution. This fundamentally avoids hallucinations and metric-definition deviations that can occur when a model generates SQL directly against underlying table structures.

    For trust controls, mature solutions typically include multiple layers of validation. Terminology-alignment checks ensure that business terms in a question are mapped correctly. DSL validity checks block structurally invalid queries. Result-plausibility checks identify clearly anomalous output. Each analysis result includes source annotations and metric-definition notes and supports tracing from the answer back to the raw data—especially important for finance, audit, and other scenarios with strict requirements for metric-definition consistency.

    For permissions and cost, this type of solution directly inherits the data-permission system of the existing BI platform, avoiding duplicate construction. Existing data assets, metric definitions, and report templates can be reused, keeping implementation cost relatively manageable.

    Applicable scenarios: organizations that already have a mature BI system, have high data-security requirements, and want to scale quickly.

    Path 2: Self-Building with Open-Source Frameworks—Flexible but Engineering-Heavy

    The technical route represented by open-source agent frameworks offers high flexibility: enterprises can freely orchestrate workflows, integrate models of their choice, and customize tool-calling logic, and the frameworks themselves usually support private deployment.

    However, the engineering reality cannot be ignored:

    1. The semantic layer must be built in-house. Open-source frameworks provide a skeleton. Metric definitions, dimension models, and terminology mappings—the core assets of a Data Agent—must be built by the enterprise from scratch. This is precisely the most labor-intensive and error-prone part of Data Agent development.
    2. Accuracy must be guaranteed by the enterprise itself. Without mature validation and traceability mechanisms, SQL-generation hallucinations must be gradually reduced through continuous testing and rule patches, resulting in long iteration cycles.
    3. The security system must be hardened in-house. Running models privately is only one part. Fine-grained data-permission control, audit logs, sensitive-data masking, and other capabilities require additional development.
    4. The operational threshold is not low. Ensuring the stability of model services, vector retrieval, task orchestration, and other components requires a dedicated team.

    Applicable scenarios: organizations with strong technical capabilities, a dedicated AI engineering team, and highly customized requirements, or as a starting point for an internal pilot to verify technical feasibility.

    Path 3: Public Cloud Managed Service—Strong Capability with a Compliance Boundary

    Deploying a Data Agent directly on a public cloud has the advantages of being ready out of the box, enabling fast iteration, avoiding operational overhead, and providing access to mature cloud-based LLM services.

    However, this path inherently conflicts with the requirement that data not leave its domain: the data must leave the domain before it can be processed. For most large regulated organizations—such as financial institutions and manufacturing or energy companies that handle sensitive data—this path is generally impractical. It is better suited to internet businesses or small and medium-sized enterprises with lower data sensitivity and compliance systems that permit data to be moved to the cloud.

    Some cloud vendors also offer dedicated cloud or localized delivery forms of agent capabilities. For such hybrid offerings, the compliance-boundary assessment should return to two fundamental questions: where the physical data boundary lies and where model inference is executed. It should not be blurred by marketing language such as “private deployment.”

    3. Key Evaluation Dimensions for Selection

    Whichever path is chosen, enterprises should establish an evaluation framework around the following five dimensions:

    1. Clarity of the data boundary. Are data storage, model inference, and result return all completed within the enterprise-controlled environment? Are there hidden telemetry or external calls?
    2. Accuracy safeguards. Does the system rely on the model to generate SQL directly, or does it have a semantic layer and a deterministic engine as a safety net? Can answers be traced back to data sources and metric definitions? Enterprises should conduct blind evaluations using real, high-frequency query scenarios and compare accuracy.
    3. Permission inheritance. Can the system directly connect to the enterprise’s existing data-permission system? Are row-level and column-level permissions strictly inherited? This is central to preventing AI from querying data beyond its authorization.
    4. Reuse of existing assets. Can existing metrics, reports, and semantic models be called directly by AI capabilities? The higher the reuse, the shorter the implementation cycle and the stronger the consistency of metric definitions.
    5. Evolution and operational cost. What is the cost of long-term operations such as model upgrades, semantic-layer maintenance, and permission changes? Are there mature supporting tools?

    4. Implementation Recommendations: A Phased Rollout

    In the first phase, select one or two business domains with a solid data-governance foundation for a pilot. Validate accuracy first rather than pursuing feature coverage. In the second phase, feed the metric-definition issues exposed by the pilot back into the semantic layer, forming a closed loop of discovering issues, correcting definitions, and verifying convergence. In the third phase, gradually expand to higher-order scenarios such as alerting, root-cause analysis, and report generation.

    An important point is this: the upper bound of a Data Agent’s value is determined by the LLM, but its trustworthy lower bound is determined by the semantic layer and the engineering system. Keeping data within its domain solves the question of whether the system can be used; accuracy safeguards solve the question of whether users dare to trust it. In selection, the former is a threshold, while the latter is the source of long-term competitiveness. Enterprises should avoid focusing solely on the “showmanship” of model capabilities and should return to the quality of foundational work such as data assets, metric-definition systems, and permission governance. These determine how far Data Agents can ultimately go.