Building Data Agents Without Data Leaving the Enterprise: Architecture Choices and Evaluation Guide

    This article explains how enterprises can build Data Agents when data must stay inside their own environment. It compares three implementation paths, outlines six evaluation dimensions covering deployment, query mechanisms, semantic layers, permissions, and trust, and offers selection and rollout guidance.

    A Data Agent lets business users query data, generate reports, and configure alerts in natural language. As large language models enter analytics, the main questions are no longer whether the demo works. They are where the model runs, whether data leaves the enterprise, whether results are trustworthy, and whether permissions can be bypassed.

    Three realities drive that shift. Traditional analytics is slow: a request typically moves through requirements, SQL, dashboards, and human interpretation. Connecting a model directly to raw tables is risky: generated SQL can misread metrics, confuse fields, or apply the wrong aggregation, and a wrong number used in decisions costs more than the speed gain. For many organizations in finance, energy, manufacturing, and the public sector, data leaving the boundary is a hard constraint. Model serving, vector indexes, logs, and caches must stay in a controlled environment.

    Selecting a Data Agent is therefore not choosing a chat UI. It is choosing an architecture that combines natural-language experience with enterprise data governance.

    Three common build paths

    Path 1: Open-source LLM orchestration. Teams often start here: wire a model, prompts, database connectors, and tool calling into a “ask your data” app. Models and backends can be self-hosted so data is not sent out by default. Queries usually rely on prompt-driven SQL generation (raw NL2SQL) against a given schema. Strengths are flexibility, cost, and code control for prototypes. Weaknesses are weak metric governance, thin permissions, poor explainability, and accuracy that depends on prompt engineering and schema quality. As tables and business complexity grow, hallucinations and metric drift get worse.

    Path 2: Enterprise data-agent platforms. These typically sit on existing BI or data platforms and add natural language on top of already defined metrics, dimensions, reports, and access control. They support intranet or private deployment so models and data stay in-house without redesigning data flows. Queries usually use NL2DSL rather than raw NL2SQL: the question is mapped to a domain-specific language, aligned to a semantic layer, then executed by a deterministic engine. The model handles intent and planning; execution is deterministic, which reduces SQL hallucination. Trust is supported by term alignment, DSL validity checks, and result reasonableness checks, plus lineage from answer back to source data and metric definitions. Permissions inherit the existing BI model, avoiding a second access path that could leak data. Existing warehouses, metrics, and reports can be reused instead of migrating data for AI.

    Path 3: Hybrid in-house architecture. Some teams combine open-source gateways, retrieval, and orchestration with custom semantic layers, audit, and validation. Control is highest, but so is long-term engineering cost. It fits large organizations with a strong data platform team, who must still solve metric governance, permission integration, and result audit themselves.

    Six evaluation dimensions

    1. Deployment and network boundary. Can the stack run fully on-prem or on a private network? Can inference run offline? Do upgrades, logs, or telemetry call out? This is the first bar for keeping data in-house and should be verified in architecture review, not only in vendor claims.

    2. Query mechanism and accuracy. Raw NL2SQL bets accuracy on the model. NL2DSL puts determinism in the semantic layer and compute engine. Prefer the latter for dense, complex metrics; use the former as a supplement for ad-hoc exploration. Test ambiguous questions, multi-metric combinations, time ranges, and period-over-period comparisons.

    3. Semantic layer and metric governance. Look for unified metric definitions, dimension alignment, and versioned definitions. If the same metric is computed differently across tables, the system should force the certified definition. Without a semantic layer, a Data Agent is mostly a natural-language SQL generator.

    4. Permissions and audit. Row- and column-level rules must apply at the conversational entry as well. Audit should cover who asked what, when, which queries ran, which data was accessed, and who signed off on the result. Inheriting BI permissions lowers rollout risk.

    5. Trust and traceability. Each answer should show source tables, metric definitions, filters, and calculation steps, with drill-down to detail. Checks should include whether terms hit defined metrics, whether the query meets syntactic and semantic constraints, and whether results pass reasonableness tests (outliers, time continuity).

    6. Cost and ecosystem fit. Does the approach force rebuilding the metric system? Does it work with the current warehouse, BI, and permission stack? Can existing assets be invoked in natural language? Higher reuse shortens time to production and reduces risk.

    Selection and rollout

    Organizations with mature BI and metrics should prefer an enterprise platform and add AI in place, reusing assets while keeping data inside the boundary. Early teams can prototype with open-source orchestration to learn real question patterns, but should plan a path that adds a semantic layer and permissions before production. Highly regulated industries should treat private deployment, end-to-end audit, and inherited permissions as veto criteria and exclude designs that depend on external model APIs or cloud-side processing of enterprise data. A practical sequence is: inventory data assets and metric definitions, gray-release one or two high-frequency scenarios with an accuracy and consistency baseline, then expand to alerts and automated reports.

    The value of a Data Agent is not conversation itself. It is a trustworthy, traceable, permission-compliant answer without data leaving the enterprise. Evaluate deployment boundaries, query mechanisms, semantic governance, and audit first, and constrain probabilistic models with deterministic engineering. Natural-language analytics becomes production-ready only when a semantic layer backs accuracy and deployment plus permissions back security.