Data Agent Selection Guide with Data Residency Constraints

    This guide explains why keeping data within your own network is a prerequisite for adopting a Data Agent, compares three mainstream technical approaches, and outlines four evaluation dimensions—deployment model, query mechanism, trustworthiness, and permissions and cost—to help you choose and roll out a solution in regulated environments.

    1. The Starting Point: Why Data Residency Is a Prerequisite, Not an Option

    Over the past decade, the mainstream model for enterprise data analysis has been “people finding data”: business teams raise requests, the data team writes SQL and builds reports, and analysts interpret the results manually. The problem with this chain is not quality but cycle time and the barrier to entry—an ad hoc data request waiting in a queue for days is normal, and the authority to interpret metric definitions is concentrated in a few people.

    Large language models have shifted the interaction from “people finding data” to “data finding people,” allowing business users to initiate analysis in natural language. But as capabilities move closer to the business, so do the risks, which fall into two categories:

    1. Semantic risk: When a model faces underlying physical tables directly, it lacks unified metric and dimension definitions and is prone to misinterpreting definitions. The same “active user” may correspond to completely different filter conditions in two tables, and the model has no way to tell, ultimately producing an answer that is syntactically correct but business-wrong.
    2. Compliance risk: If the analysis process uploads data samples or table schemas to an external cloud, the data crosses the organization’s existing security boundary. For regulated industries such as state-owned enterprises, finance, energy, and manufacturing, this is not a matter of risk appetite but of audit and regulatory requirements.

    Therefore, in these organizations, data residency is a precondition: if a technical solution cannot complete “understanding—planning—execution—explanation” entirely within the internal network, none of its other advantages make it a viable option.

    2. Three Mainstream Technical Approaches and Their Boundary Differences

    Approach 1: Enterprise Data Agent Platform (In-Place AI Upgrade)

    The core idea is not to build a new data pipeline but to layer agent capabilities on top of the enterprise’s existing BI and data systems. It has three key characteristics: it supports on-premises and private deployment, with both model services and data staying in the enterprise’s own environment; it uses a query mechanism of “natural language → domain-specific language (DSL) → semantic layer → deterministic compute engine”; and permissions and metric definitions are inherited directly from the existing systems.

    This approach matches the hard constraint most closely, at the cost of requiring the enterprise to already have a certain foundation in BI and metric governance.

    Approach 2: Private Assembly of Self-Hosted Open-Source Frameworks

    The enterprise deploys an open-source agent framework itself, combined with internal model services and vector retrieval components, and implements the data retrieval logic on its own. It offers the highest flexibility and allows deep customization of workflows; however, the semantic layer, permission filtering, and result validation all need to be built in-house, the engineering effort and long-term maintenance cost are commonly underestimated, and accuracy is hard to keep stable without unified metric definitions.

    Approach 3: Direct Connection to External Cloud Services

    This offers the highest development efficiency, with models and toolchains ready to use out of the box. But in data residency scenarios, this approach is usually only suitable for prototype validation with non-sensitive data, or for handing only desensitized metadata (table schemas, metric definitions) to external processing while raw data stays in the internal network. It is better suited to capability research than to production workloads.

    3. Four Evaluation Dimensions

    Deployment model: Where do model inference, vector indexing, and log auditing each reside? Are there any implicit outbound calls (such as online dependencies or telemetry reporting)? This needs to be verified with egress allowlists at the network layer, not just by relying on documentation claims.

    Query mechanism: Does the model directly produce executable SQL? A safer approach is for the model to output only a constrained intermediate representation, which a deterministic engine then executes:

    1. Natural language question
    2. ↓ Intent understanding and slot extraction (model responsibility)
    3. query_metric(metric="active_user", dims=["region","week"],
    4. filters=[{"channel":"app"}], grain="week")
    5. ↓ Validity check + semantic layer alignment (platform responsibility)
    6. Deterministic metric query and computation (engine responsibility)
    7. ↓
    8. Result + metric definition + data source lineage

    The model is responsible for “understanding intent and planning the path,” while the semantic layer and compute engine are responsible for “accurate execution.” Separation of responsibilities is the most effective structural means of suppressing hallucination.

    Trustworthiness: At minimum, three layers of validation should be included—term alignment (whether business terms in the question can be mapped to registered metrics), DSL validity (whether dimensions, filters, and grain can be parsed), and result reasonableness (whether magnitude, null rate, and year-over-year fluctuation are out of bounds). At the same time, every answer should be traceable to its data source and metric definition.

    Permissions and cost: Data permissions should be inherited from the existing system rather than rebuilt, so that queries are forcibly filtered within the user’s permission scope. In terms of build cost, whether existing data assets and metric definitions can be reused often affects total investment more than model selection does.

    4. Selection Recommendations and Implementation Path

    • Strongly regulated industries with a mature BI system: prioritize the enterprise data agent platform approach.
    • Highly customized scenarios with an ample platform R&D team: self-building is possible, but the semantic layer and validation layer must be completed first.
    • Prototype validation only: external services can process desensitized metadata, with a clear rule that it does not enter production.

    It is recommended to proceed in three phases: first, metric definition governance and metric registration (which determines the upper limit); then, private deployment and permission inheritance, completing an audit of network egress; finally, a gradual rollout of high-value, high-frequency scenarios, using traceable answers to build business trust.

    If cloud general-purpose capabilities are used for auxiliary workloads, a container platform can deploy internal services, object storage can hold audit materials, and log services with monitoring and alerting can keep behavioral records—all confined to the enterprise’s own network and account system, ensuring raw data never leaves the domain throughout.