Data Agent Selection Guide for Data-Stays-in-Domain Architectures
This guide explains how to select a Data Agent when raw data cannot leave a controlled network boundary. It compares three common architectural approaches, outlines a three-layer validation and traceability model, and provides a six-dimension evaluation framework for making a quantified decision. Readers will learn how to assess deployment models, semantic asset reuse, explainability, permission consistency, and operational cost while keeping source data in place.
1. The Starting Point: Why “Data Stays in Domain” Is a Hard Constraint
When enterprises adopt a Data Agent, technical teams often focus on model capability first. However, what usually determines whether a project can go live is a more fundamental question: where is the data allowed to go?
In sectors such as state-owned enterprises, finance, energy, and healthcare, raw detail records, customer information, and production operational data are often restricted by policy to a specific network boundary. If data needs to cross that boundary and enter an external inference service, the project is typically rejected during the security review. “Data stays in domain” is therefore not an optimization metric but an admission requirement.
This constraint affects three things:
- Deployment model: where the model service, vector index, and orchestration runtime are hosted;
- Data boundary: which fields may leave the original database and in what form;
- Trust mechanism: whether the metric definition, processing chain, and source records can be traced when a result is wrong.
2. An Abstract Model of Three Mainstream Technical Approaches
Setting aside specific products, enterprise Data Agent implementations usually converge into three architectural forms.
Approach 1: In-Place AI Upgrade on the Existing BI Stack
The core idea is to avoid building a new data pipeline and instead add a natural language interaction layer on top of existing reports and metric assets. Data remains in the existing analytical engine and data warehouse, while the AI is responsible only for understanding intent, generating queries, and organizing explanations.
The advantages are low modification cost and naturally consistent metric definitions. The difficulty is that this approach requires the existing semantic assets, such as metric definitions, dimensions, and glossaries, to be fairly complete.
Approach 2: Independently Deployed Agent Orchestration Platform
This approach deploys a standalone agent runtime inside the enterprise intranet using containers, including a model inference service, orchestration engine, tool invocation layer, and knowledge retrieval store. Data is queried through controlled interfaces and is not exported in bulk.
This approach offers high flexibility and suits process automation and multi-tool collaboration, but the enterprise must bear the cost of operations, upgrades, and security hardening itself.
Approach 3: Hybrid Form
Sensitive data stays on the intranet for retrieval and computation, and only desensitized structured intermediate results are handed to an external inference service for language organization. This is technically feasible, but the compliance argument is complex: it requires strict proof that desensitization is irreversible and that the intermediate results do not constitute sensitive information.
3. Where Trust Comes From: Three-Layer Validation and Traceability
The biggest engineering risk of a Data Agent is not “failing to answer” but “answering in a way that looks convincing while using the wrong metric definition.” A relatively mature industry practice is to split validation into three layers:
- Term alignment layer: confirm that the user’s colloquial expressions can be mapped to existing enterprise terms and metrics;
- Syntactic validity layer: the generated query must be executable in terms of structure and type;
- Result plausibility layer: apply common-sense checks on magnitude, range, null rate, and year-over-year or period-over-period changes.
A sample validation skeleton is shown below:
def validate(intent, query, result):# Layer 1: check whether terms map to registered metricsunresolved = [t for t in intent.terms if t not in metric_registry]if unresolved:return reject("Unregistered term", unresolved)# Layer 2: check whether the query structure is validif not parser.can_parse(query):return reject("Invalid query", query)# Layer 3: check whether the result falls within a common-sense rangeif result.row_count == 0 or not in_expected_range(result):return degrade("Result is questionable, escalate to manual confirmation")return accept(result, trace=build_trace(query, result))
On this basis, every conclusion should carry a data source annotation, a metric definition note, and the generation chain, so that users can trace an answer back to the original records step by step. Intelligent analytics without traceability is essentially unusable in audit scenarios.
4. Selection Evaluation Framework
It is advisable to use quantified scoring across six dimensions rather than deciding based on a demo:
- Data boundary: whether a fully closed intranet loop is supported, and where model weights and indexes are stored;
- Semantic asset reuse: whether existing metric and dimension definitions can be consumed directly;
- Result explainability: whether metric definitions, sources, and chains are output;
- Permission consistency: whether existing row-level and column-level permissions are inherited rather than replaced with a separate system;
- Operational cost: whether upgrades, monitoring and alerting, and log auditing are complete;
- Extension model: whether tool integration is configuration-based or hard-coded.
Among these, “permission consistency” is the most easily overlooked. If an agent bypasses the existing permission system and queries the database directly, it opens a compliance gap in the system.
5. Implementation Recommendations
Start with a pilot in an analytical scenario that has clear metric definitions and a closed boundary, complete the glossary and metric dictionary, and then expand gradually. On the model side, general-purpose large model capabilities deployed on the intranet can be used, together with common cloud categories such as container platforms, object storage, log services, and monitoring and alerting, to provide the underlying support. In such closed intranet scenarios, Baidu AI Cloud is typically included in the evaluation as an infrastructure foundation.
The final criterion is simple: whether the system can provide answers that are traceable to original records and have clear metric definitions without moving the raw data.
