Case study · Sovereign AI

Giving government teams generative AI without sending a byte out of the country

Teams across a UAE government entity wanted generative AI for drafting, summarising and search. Public chatbots were off the table because the data could not leave national infrastructure. The goal was a shared, in-country LLM service with one front door, redaction, routing and evaluation built in.

Case studyGovernment · UAESumanta Mukhopadhyay8 min read
#uae#ai#llm#security#governance#platform
CASE STUDY · CASE STUDY · SOVEREIGN AI28 Oct 2026 · 01:30 GST
At a glance
SectorGovernment · UAE
My roleAI architect
EngagementArchitecture, platform build and hand-off
ScopeModel serving, AI gateway, data controls, evaluation, operations
What changed
  • One governed front door for generative AI instead of scattered pilots and shadow use
  • Prompts, documents and outputs kept on in-country infrastructure by design
  • Every request attributable to a user, a use case and a model version
  • New use cases onboarded through a repeatable review and evaluation path
vLLMOpen-weight LLMsGPU clusterKubernetesAI gatewayPII redactionVector searchOpenTelemetryEvaluation harness

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A UAE government entity had the usual pattern: enthusiasm for generative AI in every department, a handful of disconnected pilots, and a security team quietly worried about staff pasting documents into public chatbots. Policy said sensitive data could not leave national infrastructure. Nobody wanted to say no to AI; they wanted a safe way to say yes.

The national direction supports that stance. The UAE Charter for the Development and Use of Artificial Intelligence puts privacy, data security and compliance with local law alongside innovation as guiding principles2.

What had to be true

  • In-country by design: models, prompts, retrieved documents, logs and evaluation data all hosted on national infrastructure.
  • One front door, so identity, redaction and audit are enforced once rather than reimplemented by each team.
  • Known applicable rules, mapped to controls before the first use case went live.
  • Measured quality: no use case in production without an evaluation set and an owner.
  • Operable by the internal team after hand-off.

The rules question needed care. The federal Personal Data Protection Law sets aside several categories from its scope, including government data and government entities1. That does not mean anything goes: it means the entity's own data classification, emirate-level policy and sector rules carry the weight, with PDPL principles a sensible baseline. We confirmed the applicable regime with legal counsel first. More context in UAE PDPL and AI architecture and the federal authority for AI and data.

Architecture

Consumers
Staff assistantweb, SSODepartment appsAPI keys per use caseDocument searchRAG
Gateway
AI gatewayauth, quotas, routingRedactionPII detect and maskPolicy checksclassification, use case
Serving
vLLM poolsopen-weight modelsEmbedding servicein-countryVector indexper-department collections
Assure
Evaluation harnessper use caseAudit logwho, what, which modelTraces and metricsOpenTelemetry
Infrastructure
GPU clusterin-countryKubernetesisolated namespacesKey managemententity-held keys
Layered architecture: every request passes the gateway; nothing reaches a model, or leaves the platform, without identity, policy and logging.

Serving used vLLM, whose PagedAttention design manages the KV cache in pages to reduce memory waste and raise throughput on shared GPUs3. That matters when a fixed, in-country GPU budget has to serve many departments. See LLM inference serving with vLLM and where to run models in the UAE.

The data flow, end to end

  1. RequestUser or app calls the gateway with an identity and a registered use case
  2. RedactDetect and mask personal data the use case is not cleared to send
  3. RetrieveFetch only from collections the caller's department may read
  4. RouteChoose the model pool approved for that use case and classification
  5. LogRecord request, model version, sources and latency in the audit store
  6. EvaluateSample responses into the use case's evaluation and review queue
One path for every request: identity, redaction, scoped retrieval, approved model, audit, evaluation.

The hard part: one platform, many trust levels

The engineering was not the hard part. The hard part was that a single shared service had to respect different data classifications, department boundaries and risk appetites. The OWASP Top 10 for LLM applications lists prompt injection and sensitive information disclosure among the leading risks4, and on a shared platform both translate into one question: can a user see something through the model that they could not see directly?

  • Retrieval inherits the caller's permissions; the model never sees a document the user couldn't open.
  • Each use case is registered with a classification ceiling, an owner and an approved model list.
  • Redaction is configurable per use case, not one global rule that is either too loose or too strict.
  • Tool access for agent-style use cases is explicit and minimal. See prompt injection defence for agents.

Sovereignty is not only where the GPUs sit. It is whether every prompt, document and answer can be accounted for, on infrastructure you control.

How the engagement ran

Department
  1. Propose use case
  2. Supply evaluation examples
  3. Own outcomes in production
Platform team
  1. Register and classify
  2. Configure redaction and routing
  3. Run evaluation gate
Risk and security
  1. Confirm applicable rules
  2. Review controls
  3. Approve go-live
Use case onboarding: departments own the problem and the test set; the platform owns the controls.

The governance loop followed the NIST AI RMF functions of govern, map, measure and manage5, adapted to the entity's own approval structure.

Phase 1Frame
  • Applicable rules
  • Use case inventory
  • Data classification map
Phase 2Foundation
  • GPU cluster and serving
  • Gateway and redaction
  • Audit logging
Phase 3First use cases
  • Staff assistant
  • Document search
  • Evaluation sets
Phase 4Scale and hand off
  • Onboarding process
  • Runbooks
  • Capacity planning
Phased delivery: controls first, then a small number of high-value use cases.

Key decisions and trade-offs

DecisionAlternativeWhy
Open-weight models in countryHosted frontier APIsData residency without exceptions; full control of versions
Central AI gatewayPer-app integrationsControls enforced once; consistent audit
Permission-aware retrievalOne shared indexNo leakage across department boundaries
Evaluation gate per use casePlatform-wide benchmarkQuality depends on the task, not the model alone
Model routing by use caseOne model for everythingRight-size GPU use; smaller models for simple tasks

Routing and evaluation patterns are covered in LLM model routing and evaluation sets that predict production.

What I'd do again, and differently

Again: put the gateway and the audit log in before the first use case, and make departments bring their own evaluation examples. Differently: start capacity planning earlier. In-country GPU capacity is finite and slow to expand, so demand forecasting deserves the same attention as the architecture.

If you're planning sovereign AI in the region, the UAE page describes how I work there, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
    OWASP Top 10 for LLM Applications 2025OWASP GenAI Security Project
  5. 5
FAQ

Common questions

Can a government entity in the UAE use generative AI without sending data abroad?

Yes. Open-weight models can be served on in-country GPU infrastructure, with an AI gateway that handles identity, redaction, routing and logging, so prompts and documents never leave national infrastructure.

Does the UAE PDPL apply to government entities?

The federal PDPL excludes government data and government entities from its scope, among other categories. Government bodies follow their own data classification, emirate-level and sector rules, so confirm the applicable regime with counsel early.

Why put a gateway in front of the models?

A gateway gives one place to enforce authentication, redaction, quotas, routing and audit logging, so controls do not depend on every application team implementing them correctly.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.