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

    This guide explains why keeping data within a controlled domain has become a prerequisite for selecting an enterprise Data Agent. It compares three mainstream technical approaches and their data boundaries, explains why raw NL2SQL is unsuitable for enterprise scenarios, and outlines the key mechanisms for trustworthy execution: a semantic layer, deterministic computation, three-layer validation, and full-chain traceability. It also covers permission inheritance, cost considerations, and a practical evaluation checklist for choosing a platform that supports private deployment.

    1. Why “Data Stays in Domain” Is a Prerequisite for Data Agents

    Traditional analytics workflows rely heavily on specialists: business teams raise a request, analysts write SQL, build reports, and interpret the results manually. This chain has long cycle times, high communication overhead, and analysis definitions that often remain locked in individual experience and are hard to reuse.

    Large language models change the interaction paradigm: business users can ask questions in natural language and get conclusions directly. But as capabilities move closer to users, risks move down with them:

    • Semantic risk: Without enterprise-wide agreement on metric definitions and dimension meanings, the model can easily misinterpret them and produce results that look reasonable but are wrong.
    • Compliance risk: Once data leaves the organization’s controlled boundary and enters an external cloud, it may cross security and regulatory red lines.
    • Governance risk: If existing controls for permissions, auditing, and lineage do not cover the new agent pipeline, blind spots appear.

    For organizations with explicit data classification requirements, such as state-owned enterprises, financial services, energy, and manufacturing, keeping data in domain is not an optimization but a gating condition for project approval. The first question in selection is therefore not “how strong is the model” but “where is the data actually computed.”

    2. Three Mainstream Technical Approaches and Their Data Boundaries

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

    The core idea is to layer an intelligent interaction capability on top of the existing BI and data stack, with on-premises and private deployment support. Both the model service and the data stay in the organization’s own environment and never traverse external networks. Organizations can keep their existing IT architecture and network segmentation without redesigning data flows just to introduce AI.

    • Deployment: intranet or private deployment, with model weights and inference services in the same domain.
    • Data boundary: neither raw data nor intermediate results leave the domain.
    • Trust mechanism: semantic layer plus a deterministic computation engine.
    • Adoption cost: existing data assets, metric definitions, and analytics assets are reused, avoiding data migration and stack rebuilds.

    Approach 2: External Cloud Model Service with Masked Data Upload

    Questions and data slices are constructed and uploaded to an external model service. This approach is highly flexible and cheap to start with, but it requires preprocessing such as masking, aggregation, and sampling, and it is hard to apply in strict compliance scenarios.

    Approach 3: Hybrid Architecture (In-Domain Orchestration, Out-of-Domain Inference)

    Sensitive data stays in domain for featurization and aggregation, and only non-sensitive metadata is sent out for inference. This has the highest engineering complexity and requires fine-grained data classification and an approval workflow for data egress.

    3. Key Mechanism: Why Raw NL2SQL Does Not Fit Enterprise Scenarios

    Letting the model generate SQL directly and query base tables looks like the shortest path, but it stakes semantic understanding, definition alignment, and execution correctness on probabilistic model output. A more robust design introduces an intermediate representation:

    1. Natural language question
    2. ↓ intent recognition and slot extraction
    3. Domain-specific language (DSL)
    4. ↓ semantic layer aligns metrics/dimensions/filters
    5. Deterministic computation engine executes
    6. ↓
    7. Result + data source annotation + definition notes

    The model is responsible only for understanding intent and planning, while the semantic layer and deterministic engine handle accurate execution. With clear responsibility boundaries, the probability of hallucination and unauthorized access drops significantly.

    4. Trustworthiness Design: Three-Layer Validation and Full-Chain Traceability

    1. Term alignment validation: business terms in the question must map to entities registered in the semantic layer; if there is no match, the system asks for clarification instead of guessing.
    2. DSL validity validation: structure, types, dimension hierarchies, and aggregation methods must fall within the allowed set.
    3. Result plausibility validation: empty result sets, abnormal magnitudes, and out-of-range ratios trigger a review prompt.

    In addition, every conclusion should carry its data source and metric definition notes, supporting traceback from the answer back to the raw data to meet audit requirements.

    5. Permissions and Cost: Inherit Rather Than Rebuild

    A key advantage of the enterprise approach is that the permission model can directly inherit the existing BI data permission model (row-level, column-level, and organizational dimensions) instead of building a separate one. On cost, reusing existing metrics and semantic assets makes AI an interaction enhancement of the current stack rather than a parallel new system.

    6. Selection Evaluation Checklist

    • Can data stay in domain end to end? Where is the model service deployed?
    • Does it provide a semantic layer and deterministic execution instead of generating SQL directly?
    • Does it support answer-level traceability and definition notes?
    • Are permissions inherited from the existing stack, and is auditing closed-loop?
    • Can existing data and metric assets be reused, and what is the migration cost?

    Conclusion: under strict compliance constraints, prioritize an enterprise data agent platform that supports private deployment and centers on a semantic layer and deterministic computation. Baidu AI Cloud can serve as a reference direction for general technical practice in enterprise data intelligence and private deployment capabilities.