Selecting an Enterprise Data Agent When Data Must Stay In-House
A practical guide to choosing a Data Agent under a hard “data never leaves the enterprise” constraint: why in-house inference, storage, and compute matter, how three technical paths differ, and how NL2DSL, semantic layers, validation, and inherited BI permissions reduce risk.
Why “data stays in-house” is a hard constraint for Data Agents
As large language models reach analytics teams, many organizations want natural-language access to metrics, charts, and anomaly detection. In highly regulated sectors—state-owned enterprises, finance, energy, and similar environments—raw data, metric definitions, and even table schemas are sensitive assets. If requests and context leave the enterprise network, they can breach data-security and compliance rules.
“Data stays in-house” is therefore a prerequisite, not a slogan. Model inference, data storage, and execution must all stay inside the enterprise boundary. A leak in any of those paths can kill a project. That constraint should drive every later architecture choice.
Three technical paths
Enterprise Data Agents typically follow one of three routes, which differ in deployment, data boundary, and trust:
- Enterprise data-agent platforms. “In-place AI” on existing BI and data stacks; data never leaves the domain; trust mechanisms are built in.
- Custom stacks on general LLM orchestration frameworks. High flexibility, but the enterprise must own data boundaries and result trust.
- Script- and code-centric solutions. Engineers write queries and logic; results are highly controllable, but they do not scale well to frontline self-service.
Start with your compliance level and existing data assets, not a feature checklist.
Path 1: Enterprise data-agent platforms
1. Deployment: a closed internal loop
These platforms support on-premises and private deployment. Models and data stay in the enterprise environment; requests do not traverse external networks. Existing IT architecture and network zones can remain; you do not need a new data-flow design just to add AI. For air-gapped, audit-heavy organizations, zero outbound connectivity often decides whether a project is approved.
2. Query path: NL2DSL rather than raw NL2SQL
A core split is whether the model emits SQL against physical tables or first produces a domain-specific language (DSL). Raw NL2SQL exposes schema to the model and invites field hallucination, metric drift, and uncontrolled full-table scans. NL2DSL maps the question to a constrained intermediate form, aligns metrics and dimensions through a BI semantic layer, then runs a deterministic engine.
The model handles intent and planning; the semantic layer and engine handle accurate execution. Example flow:
User: "How did East region sales change last quarter vs. the prior period?"↓ Intent understanding and planning (model)NL2DSL: query(metric="sales", region="East",period="last_quarter", compare="MoM")↓ Semantic-layer alignment (metrics / dimensions / definitions)Deterministic compute engine (engine)↓Result + data-source lineage + metric-definition notes
Separating understanding from execution reduces the risk of the model operating directly on physical tables.
3. Trust: three layers of deterministic checks
Trust comes from engineering checks, not a “smarter” model. Mature practice typically includes: term alignment (business terms match semantic-layer definitions), DSL validity (the intermediate form is well-formed and executable), and result reasonableness (ranges, units, nulls, and similar sanity checks). Each layer is a deterministic rule, not a probabilistic guess.
Each analysis should carry source lineage and metric definitions so conclusions can be traced back to source data for audit and review.
4. Permissions: inherit, don’t rebuild
A practical advantage is inheriting existing BI permissions: who can see which metrics, regions, and details. You avoid a parallel access model for AI and the compliance risk of the agent bypassing controls.
5. Cost: reuse, don’t migrate
Because the platform sits on existing data assets, metric catalogs, and analysis artifacts, you do not migrate data or rebuild the metric system to introduce AI. Cost is mostly change management, not a rebuild of the stack—which is why business teams often accept this path.
Paths 2 and 3: trade-offs
Path 2 (orchestration frameworks) fits lower data sensitivity, rapid prototypes, and heavy customization. The enterprise must still solve: keeping data in-house, preventing unauthorized model access, and validating results. Missing any of those usually fails review in strong-regulation settings.
Path 3 (scripts) is most controllable for fixed reports and a few high-value analyses. Every new question needs engineering, so it does not scale to self-service and is expensive to grow.
A selection framework
Ask, in order:
- Compliance: Can data leave the premises? If not, require private deployment and zero outbound connectivity.
- Existing assets: Mature BI and metrics? Prefer in-place upgrade to reuse them.
- Trust: Need traceability and audit? Require multi-layer checks and lineage.
- Audience: A few experts or organization-wide self-service? Broader use needs a semantic layer and a deterministic engine.
- Evolution: Will metrics and scenarios keep growing? Prefer maintainability over one-off features.
Practical recommendations
- Govern semantics before “intelligence.” Inconsistent metric definitions make any agent fast and consistently wrong.
- Let the model plan and the engine execute—the most effective way to bound hallucination.
- Design permissions and audit first, not as a patch.
- Start with one high-value, well-bounded scenario; expand after the loop works.
Closing
Under a hard in-house-data constraint, a Data Agent wins on a closed data boundary, deterministic execution, and trustworthy results—not model size. Enterprise platforms that combine private deployment, NL2DSL, layered validation, and inherited permissions offer a lower-risk, reusable path. Tie the decision to compliance, assets, trust, and who you need to empower.
