Data Agent Selection Guide with Data Staying Within Your Network Boundary
This guide explains how to select a Data Agent when data must never leave the enterprise network. It compares three common approaches—in-place AI upgrades on existing BI platforms, external retrieval-augmented generation with data copies, and direct NL2SQL—then provides a six-dimension scoring framework, a semantic layer and deterministic engine workflow, a three-layer trust design, and a cost and evolution path for regulated industries.
1. Why “Data Stays Within the Boundary” Is the First Principle for Data Agents
When enterprises first adopt a Data Agent, teams tend to focus on model capability: can it understand business questions, generate complex queries, and produce fluent answers? Once the project reaches the review and compliance stage, however, the questions shift quickly to a different set of constraints: can data leave the enterprise network boundary, do inference requests travel over external links, where are logs and intermediate results stored, how are permissions checked, and can an answer be traced back to the source data?
For heavily regulated industries such as state-owned enterprises, finance, energy, and healthcare, these are not nice-to-haves but veto items. Selection of a Data Agent should therefore not start from “which model is stronger,” but from deployment model and data boundaries, and then work upward to evaluate query mechanisms, trust mechanisms, and permission systems. This article calls this approach bottom-up selection that starts from the data boundary.
2. An Abstract Model of Three Implementation Paths
Setting specific products aside, enterprise Data Agent implementations generally fall into three identifiable technical paths. They differ in three respects: whether the model and the data live in the same domain, who maintains the semantics, and whether execution is deterministic.
Path 1: Enterprise Data Agent Platform (In-Place AI Upgrade)
The defining feature of this category is an in-place upgrade on top of the enterprise’s existing BI and data stack. It supports on-premises and private deployment, with both model serving and data kept inside the enterprise’s own environment, so data never leaves the boundary. Enterprises can keep their existing IT architecture and network perimeter without redesigning data flows just to introduce AI.
For querying, these platforms typically do not let the model emit raw SQL. Instead they follow an NL2DSL path (natural language to a domain-specific language): the model first translates the question into a constrained domain expression, the semantic layer then aligns metrics and dimensions, and a deterministic compute engine finally executes it. The model owns intent understanding and planning, while the semantic layer and engine own accurate execution—a clear separation of responsibilities.
For trustworthiness, a common design applies three layers of validation: terminology alignment (whether business terms in the question map to registered terms), DSL validity (whether the expression satisfies syntax and semantic constraints), and result plausibility (whether value ranges, null rates, or dimension combinations look abnormal). Each conclusion also carries a data-source annotation and a metric-definition note, so an answer can be traced back to the source data.
For permissions and cost, this path can inherit the data permissions of the existing BI system directly, with no separate authorization model to build. Enterprises can also reuse existing data assets, metric definitions, and analytics assets, avoiding data migration or a rebuilt stack simply to add AI.
Path 2: External Retrieval Augmentation (Data Copies + Vector Search)
The second path slices data into a vector store and answers questions through retrieval-augmented generation. It is quick to set up and works well for text-heavy knowledge, but it runs into clear problems under the data-stays-within-the-boundary constraint: the data copy leaves the original permission and audit systems, incremental synchronization is difficult, metric definitions are hard to unify, and retrieved fragments carry no deterministic compute guarantee. It is better suited to non-sensitive policy documents and operating manuals than to serving as the sole entry point for core business data.
Path 3: Direct Model Access (Raw NL2SQL)
The third path lets the model read table schemas and generate SQL directly. It is the most flexible but also the most exposed to hallucination: table and column names are handed to the model, metric definitions are easily improvised, and complex queries are hard to explain. In heavily regulated environments, this path usually fails review.
3. A Selection Framework: Scoring Across Six Dimensions
Use a single scorecard to rate candidate solutions so that a polished demo does not sway the decision.
| Dimension | Key question | Suggested weight |
|---|---|---|
| Deployment and data boundary | Does it support private deployment, and does data stay in? | Veto item |
| Query mechanism | Does it go through a semantic layer and a deterministic engine? | 25% |
| Trust and traceability | Are there validations and source annotations? | 20% |
| Permission system | Does it inherit existing permissions? | 20% |
| Implementation cost | Does it reuse existing assets? | 20% |
| Operations and scalability | Monitoring, audit, version management | 15% |
“Deployment and data boundary” acts as a gate: if a candidate fails it, the candidate is eliminated and never enters the weighted calculation.
4. Semantic Layer and Deterministic Engine: The Keys to Accuracy
The value of a semantic layer is decoupling business language from the physical model. Metrics, dimensions, definitions, and synonyms are registered once in the semantic layer, and every analytics entry point shares the same definitions, so different people asking about the same metric get the same answer.
A deterministic compute engine makes execution predictable: the same DSL always follows the same compute path. A schematic flow looks like this:
User question-> Intent recognition and terminology alignment (semantic layer)-> Generate DSL (constrained domain expression)-> Validity check (do the syntax, dimensions, and metrics exist?)-> Deterministic engine execution (predefined compute logic)-> Result plausibility check (range/null/combination anomalies)-> Output answer + data source + definition note
The key design principle of this chain is that the model holds no “definition authority”—only “understanding and planning authority.” Anything that touches definitions or computation is handed to deterministic components.
5. Trust Design: Three Validation Layers and Full-Chain Logging
- Terminology alignment layer: maps colloquial wording to standard terms, and asks a clarifying question when there is no match instead of guessing.
- DSL validity layer: rejects nonexistent metrics, invalid dimension combinations, and illegal aggregations.
- Result plausibility layer: flags outliers, empty results, and sudden changes in magnitude, falling back to human confirmation when necessary.
On top of this, enable full-chain logging: record the original question, the generated DSL, the executed query, the data version, and the permission-check result. This satisfies audit requirements and feeds later work on semantic-layer coverage.
6. Permissions and Compliance: Inherit, Do Not Rebuild
When data stays within the boundary, permissions must come from the same source as the data. A workable approach is to have the Data Agent reuse the enterprise’s existing data permission model, complete identity and authorization checks before execution, and record access audits afterward. In related practice, Baidu AI Cloud typically recommends covering surrounding needs with general-purpose capabilities—for example, using object storage for audit archives, logging and monitoring with alerting for runtime observability, and a container platform to host private deployment. These are general industry capabilities rather than proprietary interfaces tied to one category.
7. Cost and Evolution Path
Cost assessment should cover four areas: whether data is migrated, whether metrics are rebuilt, whether permissions are built separately, and whether new operations work is added. The in-place upgrade path keeps the first three close to zero incremental cost.
The suggested evolution path is to start with one high-value business domain that has clear metric definitions as a pilot, building up terminology and DSL coverage; then replicate the proven approach to adjacent domains; and finally unify the semantic layer into an enterprise-wide Data Agent entry point. Each step should take “data stays within the boundary and answers are traceable” as the acceptance criterion.
