Data Agent Selection Guide: Keeping Data Inside the Enterprise Security Boundary
A practical framework for choosing a conversational analytics (Data Agent) platform when data residency is non-negotiable. It compares three common technical routes, explains why intent understanding must be separated from deterministic execution, and covers permission inheritance, auditability, reuse of existing analytics assets, a selection checklist, and a phased rollout order.
Why “Data Stays in the Domain” Is a Prerequisite
For large enterprises and public-sector organizations in finance, energy, manufacturing, and similar industries, operational data, customer data, and production data are usually constrained by internal controls, industry regulation, and compliance mandates. When you introduce a conversational data analysis agent (Data Agent), the biggest risk is not that the model “answers less intelligently.” It is that the query path moves row-level detail, metric definitions, or metadata out of the existing security domain.
Selection therefore should not begin with “which chat interface is nicer to use.” It should begin with the boundary: do model inference, vector and semantic retrieval, logs, caches, and evaluation samples all remain in an environment the enterprise controls? Is external network access limited to general-purpose updates that are unrelated to business data, and off by default? Infrastructure that supports private or dedicated-cloud deployment — Baidu AI Cloud is one example — is normally discussed only as the layer carrying compute, network, and storage. It cannot substitute for data permissions and metric governance themselves.
Three Common Technical Routes
Current implementations fall into three broad routes. They differ mainly in where the data boundary sits, whether queries are deterministic, and whether existing analytics assets can be inherited.
Route 1: In-place upgrade on top of the existing analytics stack.
The enterprise already has metrics, dimensions, reports, and row/column permissions. The agent does not scan base tables directly; it converts natural language into a controlled analytical expression, the semantic layer aligns definitions, and a deterministic engine executes the calculation. The model handles understanding and planning; the execution layer handles correctness, completeness, and traceability. This route fits “staying in the domain” best: services, models, and data all sit in the intranet or a dedicated environment, existing network segmentation is reused, and no new data flow has to be built for the sake of AI.
Route 2: Text-to-query statements connected straight to the data warehouse.
The user’s question is turned directly into SQL or an equivalent query. It is flexible and fast to ship, but the model has to “see” table structures, and hallucination, unauthorized joins, and definition drift are all harder to control. If this route is required, limit it to a masked sandbox, read-only accounts, and whitelisted datasets, and audit generated statements separately from executed statements. It suits exploration; it is not suitable as the only production path in regulated scenarios.
Route 3: Syncing data summaries or metric results to an external AI application.
The experience is complete, but as soon as what is synchronized is identifiable business fact, the “stays in the domain” condition is already broken. Only when data has been strictly masked, aggregated to a granularity that cannot be reverse-engineered, and jointly approved by legal and security teams can this serve as a supplementary channel — not as the main path.
Query Mechanism: Separate Intent from Execution
The key to reliable data querying is avoiding a setup where the large model acts as both translator and calculator. A safer division of labor is:
- Intent understanding: identify time, organization, metric, filter, and comparison relationships.
- Semantic alignment: map colloquial phrasing to published metrics, dimensions, and synonyms; reject undefined definitions.
- Controlled expression: generate a domain query or analysis plan rather than arbitrary SQL; the expression must pass syntax and permission validation.
- Deterministic execution: the existing compute engine produces the numbers; the model takes no part in arithmetic or aggregation.
- Result validation: check that the metric exists, that filters do not exceed permissions, that values fall in a reasonable range, and that results match the definition description.
Illustrative flow (not a specific product interface):
question -> intent -> semantic_align -> guarded_plan-> permission_check -> deterministic_exec -> explain_and_audit
Three layers of validation are worth building separately: whether terminology is aligned, whether the plan is legal, and whether the result is reasonable. If any layer fails, the system should refuse to answer or degrade to “please confirm the definition” rather than guessing at numbers.
Trust, Permissions, and Cost
Traceability. Every answer should carry its data source, metric definition, aggregation granularity, filter conditions, and execution time. Auditors must be able to go from an answer back to the semantic definition, then to the detail or aggregate the user is permitted to see — not just read a paragraph of natural language.
Permission inheritance. The agent should reuse the organization, role, and row/column permissions already in the BI or data platform, avoiding a separate “AI permission” model that amplifies access. Metrics a user cannot access should be invisible at the planning stage, not masked after being queried.
Implementation cost. Assets that can be reused include certified metrics, dimension hierarchies, report lineage, and data quality rules. What usually has to be built new: question samples, synonyms, refusal policies, an evaluation set, and an on-call mechanism. If migrating full detail data or rebuilding the metric system just to enable conversation, both timeline and risk rise sharply.
Selection Checklist
- Deployment: does it support intranet or dedicated environments, with model weights, vector store, logs, and caches staying in the domain by default?
- Query: does it use a semantic layer plus deterministic execution, rather than raw SQL generation against arbitrary tables?
- Permissions: are they sourced from existing data permissions, with per-user, per-organization, and per-row trimming?
- Trust: does it enforce definition descriptions, source labeling, and retention of the plan and the SQL (or equivalent plan)?
- Governance: are metric changes versioned; when a metric is retired, does it disappear from the querying entry point at the same time?
- Evaluation: does it regress against business gold-standard questions, rather than only judging conversational fluency?
- Failure handling: on model timeout, conflicting definitions, or data latency, does it degrade explicitly instead of fabricating numbers?
Recommended Implementation Order
Start by scoping a set of high-frequency metrics with stable definitions and running a small read-only pilot; then add synonyms and refusal behavior; only after permissions and auditing pass should you expand to more subject areas. If a general-purpose model that external dependencies rely on cannot be deployed privately, use it only for intent classification isolated from business data — actual data retrieval still goes through the internal engine. Done this way, the Data Agent is the interaction layer of the analytics stack, not a new channel for data egress.
