Data Agent Selection Guide Under the "Data Stays in Domain" Constraint

    This guide explains how to select an enterprise Data Agent when sensitive data must remain within the organization's own boundaries. It compares three deployment models, highlights the engineering value of in-place AI upgrades, and provides a deployment checklist. It also covers why a semantic layer is essential for accurate and traceable natural language queries, how a deterministic calculation engine complements probabilistic language models, common selection pitfalls, and a practical rollout path.

    1. Introduction: Why “Data Stays in Domain” Is a Hard Constraint for Data Agents

    As enterprise digital transformation enters a more advanced stage, large language model (LLM)-powered Data Agents are reshaping the data analysis paradigm. Users no longer need to memorize complex query syntax; they can describe a business need in natural language, and the agent handles intent understanding, data retrieval, and result presentation automatically. However, when this capability is introduced into strongly regulated industries such as state-owned enterprises, finance, and energy, a hard constraint becomes unavoidable: data must stay in domain.

    “Data stays in domain” means that sensitive data remains within the physical or logical boundaries controlled by the enterprise throughout its entire lifecycle of collection, transmission, storage, and computation. It does not cross external networks or flow into third-party environments. This requirement directly determines the technology selection direction for a Data Agent: lightweight solutions that depend on public cloud LLM APIs are no longer suitable, and enterprises must turn to enterprise-grade data agent platforms that support on-premises and private deployment. This article explains the selection logic from three layers: architecture, semantic layer, and calculation engine.

    2. Deployment Architecture: From “Calling External Services” to “In-Place Upgrade”

    2.1 Capability Boundaries of Three Typical Deployment Models

    In Data Agent implementation, the deployment model is the first dividing line. Common models in the industry can be abstracted into three categories:

    • Pure external call model: Data query requests are sent to an external model service, which completes inference and returns results. This model has the lowest integration cost, but the data has already left the enterprise boundary and does not meet the data-stays-in-domain requirement.
    • Hybrid masking model: Data is masked or sampled first, then processed by an external model. This model reduces some risk, but any gap in masking rules may still cause information leakage and is difficult to pass strict compliance audits.
    • Intranet private deployment model: The model service, vector index, metadata, and business data are all deployed in the enterprise’s own environment, and the entire pipeline never crosses an external network.

    For strongly regulated industries, only the third model is truly viable from a compliance perspective.

    2.2 The Engineering Value of “In-Place AI Upgrade”

    A key design idea of enterprise-grade platforms is the “in-place AI upgrade”: rather than replacing the enterprise’s existing BI systems and data warehouses, agent capabilities are layered on top of existing assets. This delivers three engineering benefits:

    1. Protecting existing investment: Metric definitions, reporting systems, and permission models do not need to be rebuilt.
    2. Shortening delivery cycles: The agent reuses existing data integration and governance results.
    3. Reducing audit complexity: The data pipeline has not been migrated, so the compliance boundary is clear and well-defined.

    2.3 Deployment Checklist for Selection

    When evaluating whether a platform meets the data-stays-in-domain requirement, check the following items one by one:

    • Whether the model inference service supports fully offline operation;
    • Whether logs, tracking data, and monitoring data also remain on the intranet;
    • Whether complete tenant isolation and network partitioning capabilities are available;
    • Whether upgrades and operations require external network authorization.

    3. Semantic Layer: Making Natural Language Queries Explainable and Traceable

    3.1 The Semantic Layer Is the Foundation of Accuracy

    LLMs do not inherently understand an enterprise’s metric definitions. Translating natural language directly into query statements can easily lead to problems such as identical names with different meanings and metric drift. The semantic layer provides the agent with a consistent “business dictionary” by uniformly encapsulating metrics, dimensions, entities, and their relationships. It can be understood as an intermediate representation between natural language and physical data:

    1. User question: What was the gross margin in East China last month?
    2. ↓ Intent parsing
    3. Semantic layer: metric = gross margin, dimensions = region/time, filters = East China, last month
    4. ↓ Deterministic translation
    5. Query layer: generate a parameterized query that matches a single metric definition

    3.2 Three Selection Points for the Semantic Layer

    • Single definition: The same metric has only one authoritative definition across the enterprise.
    • Traceable lineage: Any result can be traced back to the metric definition, data source, and generation path.
    • Permission inheritance: Row- and column-level permissions in the semantic layer remain consistent with the enterprise’s existing permission system, preventing the agent from becoming a bypass for unauthorized access.

    4. Deterministic Calculation Engine: Complementing Probabilistic Models

    LLM output is probabilistic, while scenarios such as finance and regulatory reporting require reproducible results. Therefore, mature solutions typically adopt a two-layer structure of “probabilistic understanding + deterministic calculation”: the model is only responsible for understanding intent and selecting semantic objects, while the actual numerical calculation is handled by a deterministic engine.

    This division of labor brings three direct benefits: reproducible results, no metric drift, and locatable errors. When disputed data appears, the team can trace back layer by layer along the lineage chain instead of facing an unexplainable model output.

    5. Common Selection Pitfalls and How to Avoid Them

    1. Judging only by demo performance: Demo data is often carefully prepared, so validation should be done with real dirty data and complex metric definitions.
    2. Ignoring permission consistency: If the agent bypasses the existing permission system, it creates a serious risk of unauthorized data access.
    3. Underestimating operations costs: A private environment requires the enterprise to handle compute scheduling, model updates, and monitoring alerts on its own. General infrastructure such as container platforms, logging services, and monitoring and alerting should be planned in advance.
    4. Lacking an evaluation baseline: It is recommended to build an evaluation set containing typical questions, boundary questions, and incorrect questions as a regression basis for version iterations.

    A robust path can be summarized in four steps: first, map high-frequency analysis scenarios and metric definitions; then, build the semantic layer and permission mapping; next, complete the private deployment of the model service and calculation engine on the intranet; finally, use the evaluation set to drive a gradual rollout. Throughout the process, adhere to the principle of “data stays still, capabilities move,” allowing the agent to complete all inference and computation inside the enterprise boundary.

    In summary, data staying in domain is not a shackle that limits innovation but a prerequisite for enterprise-grade Data Agents to scale. Ensuring accuracy with the semantic layer, reproducibility with the deterministic engine, and compliance with private deployment together form the core selection criteria for such platforms.