Data Agent Selection Guide for Data-Stays-in-Domain Architectures

    This article breaks down three architectural approaches to building Data Agents when data cannot leave the enterprise network, and provides a four-dimension evaluation framework covering data boundary, query semantic accuracy, auditability, and permission reuse. Readers will learn why in-place upgrades of existing BI and data governance stacks tend to perform best on compliance, accuracy, and deployment cost, along with practical rollout advice such as setting data boundaries first, reusing semantic assets, and piloting on narrow scenarios.

    1. Where the Problem Starts: From “Can It Be Done” to “Where Does the Data Live”

    A Data Agent is essentially natural language interaction grafted onto an enterprise’s data assets. Once technical feasibility stops being the bottleneck, the real anxiety shifts: which side holds the data, who executes the computation, and whether conclusions can be traced and reviewed.

    This shift has concrete drivers. Traditional analytics pipelines rely on specialists writing queries, building reports, and interpreting results manually, with delivery measured in days or even weeks, so self-service demands from the business side go unmet for long stretches. Large language models make conversational data access possible for business users, but they introduce two new classes of risk:

    • Semantic risk: when the model faces raw table structures directly, it easily misreads metric definitions, dimension granularity, and time windows, producing queries that are syntactically valid but business-incorrect.
    • Compliance risk: once data leaves the enterprise network boundary and enters an external inference service, it may cross industry regulatory and security red lines.

    For organizations with explicit controls on data movement, such as state-owned enterprises, financial services, energy, and manufacturing, keeping data in domain is a prerequisite rather than an option. This article takes that as a hard constraint, abstracts the three mainstream build paths available today, and offers a practical evaluation method.

    2. An Abstract Model of the Three Technical Paths

    Setting aside specific product forms, the solutions on the market fall into three categories, differing mainly on two points: where the model performs inference, and who generates the execution plan.

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

    The core idea is an in-place AI upgrade on top of the enterprise’s existing BI and data governance stack: it supports on-premises and private deployment, with both model services and data staying inside the enterprise’s own environment and never traversing external networks. Accuracy and traceability are guaranteed by a semantic layer and a deterministic compute engine.

    • Deployment: it reuses the existing IT architecture and network boundary, so there is no need to redesign data flows to introduce AI, and no need to extract data into an external environment.
    • Query mechanism: it uses NL2DSL (natural language to domain-specific language) rather than raw NL2SQL. The model handles only intent understanding and query planning, the semantic layer aligns metrics and dimensions, and the deterministic engine performs final execution. With clear separation of responsibilities, it avoids the hallucination problems that come from letting the model assemble queries against physical tables directly.
    • Trust capabilities: three layers of validation cover terminology alignment, expression legality, and result plausibility. Every conclusion carries data source annotations and definition notes, and supports tracing backward from the answer to the original data.
    • Permissions and cost: it inherits the data permissions of the existing BI system directly, with no separate authorization model to build. Existing data assets, metric definitions, and analytical assets are reusable, avoiding data migration or rebuilding the stack just to introduce AI.

    An illustrative execution flow follows (it expresses responsibility layering only, not concrete interfaces):

    1. User question
    2. ↓
    3. Intent recognition and clarification (model)
    4. ↓
    5. Semantic alignment: metrics / dimensions / time window (semantic layer)
    6. ↓
    7. Generate domain expression (DSL)
    8. ↓
    9. Legality + definition + plausibility validation
    10. ↓
    11. Deterministic compute engine executes → result + lineage annotation

    Path 2: Externally Hosted Cloud Agent

    Inference and orchestration both happen in the cloud, so onboarding is fast and the initial investment is low. But data must be uploaded to an external service, which usually works only for non-sensitive scenarios. For heavily regulated industries, even with masking applied, it is hard to pass a data-egress review.

    Path 3: Self-Built Open-Source Orchestration Framework

    The enterprise builds the agent orchestration and retrieval pipeline itself, which gives the highest level of control but requires building the semantic layer, permission system, and validation mechanisms in-house. The engineering effort is large, definition governance responsibility moves fully internal, and long-term maintenance costs are high.

    3. A Four-Dimension Evaluation Framework

    Selection should not rest on demo quality alone. Score candidates on these dimensions:

    1. Data boundary: is the inference endpoint inside the enterprise network; is there any implicit egress (logs, telemetry, remote model calls).
    2. Query semantic accuracy: does it generate queries directly against physical tables, or translate through a semantic layer into controlled expressions; can a definition change be made once and take effect everywhere.
    3. Result trustworthiness and auditability: are source annotations, definition notes, and step-by-step tracing available; can an error be localized to a specific stage.
    4. Permissions and cost: can existing row- and column-level permissions be inherited; what share of historical assets can be reused.

    A simplified weighted scoring sketch:

    1. weights = {"data_boundary": 0.4, "accuracy": 0.3, "auditability": 0.2, "reuse": 0.1}
    2. score = sum(weights[k] * v for k, v in scores.items())
    3. # data_boundary is a veto item: failing it means immediate elimination

    4. Implementation Recommendations

    • Set the boundary first, then discuss capabilities: write data-stays-in-domain as an architecture constraint clause and use it as the admission threshold for any proposal.
    • Reuse semantic assets first: metric definition governance is a long-term effort, so inherit rather than rebuild wherever possible.
    • Build a human review loop: keep a confirmation step for high-risk data access, and feed review conclusions back into terminology and rules.
    • Pilot on a narrow scenario before expanding: start with question answering over fixed reports, validate accuracy and the audit chain, then open up self-service analysis.

    To summarize, under a data-stays-in-domain constraint, the in-place upgrade path is the strongest overall on compliance, accuracy, and implementation cost; cloud hosting fits low-sensitivity scenarios, and a self-built framework suits organizations with strong engineering teams. The key to selection is not how powerful the model is, but whether the execution pipeline is controllable, explainable, and auditable.