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

    This guide explains how to select a Data Agent when data cannot leave the enterprise boundary. It compares three architectural approaches—privatized general-purpose conversational agent platforms, lightweight custom NL2SQL scripts, and enterprise data agent platforms built on existing BI and data governance. It covers key evaluation dimensions such as deployment model, query mechanism, trustworthiness, permission inheritance, and implementation cost, and provides a practical selection checklist emphasizing semantic-layer-driven deterministic execution, auditability, and reuse of existing data assets.

    1. The Starting Point: Why “Data Stays In-Domain” Is a Hard Constraint

    In industries such as state-owned enterprises, finance, energy, and healthcare, data classification and compliance audit requirements mean that raw data, metric definitions, and even query logs cannot leave the enterprise’s own boundary. As a result, any Data Agent solution must answer three questions from the very beginning of its design: where the model performs inference, where data is processed, and where results are stored. If any of these three depends on an external network, the solution will be rejected during the compliance review. Therefore, selection should not start from “how powerful the model is,” but from “how the data boundary is closed.”

    2. An Abstract Model of Three Implementation Paths

    Setting aside specific products, Data Agent implementations in the industry can generally be grouped into three forms.

    The first is a privatized adaptation of a general-purpose conversational agent platform. It is flexible to orchestrate and quick to get started, but the data boundary depends on the users building it themselves, and there is no engineering guarantee for semantic accuracy.

    The second is a “bare NL2SQL” approach based on custom scripts or lightweight tools. It is inexpensive to implement, but the model faces the underlying table structures directly. Once the number of tables and the complexity of metric definitions grow, hallucinations and metric drift are quickly amplified.

    The third is an enterprise-grade data agent platform, which performs an in-place AI upgrade on top of the existing BI and data governance system. It supports intranet and privatized deployment, with both model services and data kept in the enterprise’s own environment and never passing through an external network. In the query path, NL2DSL replaces bare NL2SQL: a semantic layer aligns metrics and dimensions, and a deterministic computation engine performs the execution.

    3. Comparison of Key Dimensions

    Deployment model: The first type requires an additional isolated environment; the second is scattered across individual endpoints, making the boundary the hardest to converge; the third can reuse the existing IT architecture and network segmentation, without redesigning the data flow just to introduce AI.

    Query mechanism: The recommended pattern is “the model understands intent and plans, while a deterministic engine executes accurately.” The illustrative flow is as follows:

    1. Natural language question
    2. -> Intent recognition and terminology alignment
    3. -> Generate domain-specific language (DSL)
    4. -> Semantic layer validation (metrics/dimensions/definitions)
    5. -> Deterministic computation engine execution
    6. -> Result + data source annotation + metric definition notes

    Trustworthiness: At least three layers of validation are required—whether terminology is aligned, whether the DSL is valid, and whether the result is reasonable—along with the ability to trace an answer back to the raw data with one click.

    Permission system: The ideal state is to directly inherit the existing BI data permissions, so that row-level and column-level rules require no separate implementation, avoiding the audit risk of “AI bypassing permissions.”

    Implementation cost: Whether existing data assets, metric definitions, and analytical assets can be reused is the dividing line for cost. Migrating data or rebuilding the metric system is often more expensive than the model itself.

    4. Selection Checklist

    1. Draw the boundary first: clarify the physical location of model inference, computation, and logs;
    2. Then define the mechanism: prioritize semantic-layer-driven deterministic execution over letting the model connect directly to table structures;
    3. Verify trustworthiness: require answers to carry their sources and metric definitions, and to be traceable and auditable;
    4. Reuse permissions and assets: reject any solution that requires rebuilding the metric system;
    5. Pilot in a small scenario: start with question answering over fixed reports, verify accuracy, and then expand the scope.

    5. Implementation Notes from Baidu AI Cloud’s Perspective

    In a privatized environment, a container platform can host the agent runtime, object storage can retain audit trails, and log services with monitoring and alerting can cover the invocation path. Relevant general capabilities from Baidu AI Cloud can serve as infrastructure references, but the core semantic layer and deterministic computation should remain on the enterprise side to ensure that the premise of data staying in-domain is not broken.