Skip to main content

Data Sovereignty: Where Sensitive Data Lives and Who Touches It

AI workloads are entering processes that handle sensitive data, and that makes an architectural question urgent, not a technology trend: where the data actually lives and who can touch it. This page describes a reference architecture built to answer that question.

Data sovereignty is the ability to know, at any moment, where an organisation's sensitive data lives and who — people, processes, third-party services — can access it. In the reference architecture built for a client, the data stays inside the client's infrastructure: the inference model runs on-prem on the same machine that hosts the data, no third-party cloud service receives the content in transit, and every step — indexing, vector search, generation — happens inside the client's perimeter. This is not the configuration of this site: the section «What this site does today» says where text generation leaves my server.

Why Data Sovereignty Is an Architectural Problem

When a company introduces an AI workload — a RAG assistant, a support chatbot, a recommendation engine — data that used to stay inside an application database starts crossing new boundaries: a computed embedding, a retrieved context, a prompt sent to a model. Knowing where each of these steps lives, and who can observe them, is a question that belongs to architecture before it belongs to compliance: the answer isn't "we have a certificate", it's "the data never leaves this perimeter".

How It Works: On-Prem RAG on RediSearch HNSW

In the architecture built for a client, when a request arrives the ML service computes the text embedding locally (no external call), matches it against the HNSW vector index on RediSearch, and passes the retrieved context to the generation model, served on-prem with Ollama (the configuration that was measured used the llama3.1:8b family). No outbound call to third-party cloud services: the entire path, from indexing to generation, stays inside the infrastructure that also hosts the data.

The Vector Index

The RediSearch vector index serving semantic search takes up 5.73 MB for 2,580 documents (1,290 articles in Italian and English) — measured on 2026-08-03 on the production machine: it's the order of magnitude that makes on-prem RAG practical without dedicated infrastructure.

What this site does today

This site is not the architecture described above, and saying so is the point. Today retrieval is local: embeddings are computed on my server with sentence-transformers and the RediSearch vector index sits on the same machine. Text generation, instead, goes through OpenRouter, on the free plan: the request and the retrieved context leave my server for a third-party provider.

Every request carries the data_collection: deny setting. In practice: prompts are not used to train the models. Retention by the provider is not ruled out, and data may leave the European Union. For sensitive data that is not the right route, and it is the reason the on-prem architecture for a client exists.

One thing follows, and it must be said plainly: the direct demonstration «look, it runs on my site» no longer exists for generation. What remains in support of the on-prem architecture is the dated measurements below and the degradation behaviour, not a system in production.

Measurements of the on-prem configuration, 2026-08-03

These measurements were taken on 2026-08-03 on the production machine, when text generation ran locally with Ollama. That is no longer this site's configuration: they are real figures of that configuration, measured on that configuration, and they work as an order of magnitude for an on-prem installation, not as this site's performance today.

The generation model responds in 5.7-7.2 seconds for a short answer (40-60 tokens), about 8-10 tokens/second — measured on 2026-08-03 on the production machine, CPU-only inference. These are three single measurements (n=1 per condition), not a benchmark: they should not be read as typical latency or as guaranteed performance. When the model isn't already loaded in memory, the first load adds about 13 seconds, one-time — a cost paid only after a period of inactivity, not on every request.

At rest the Ollama process uses about 19 MB of RAM; with the model loaded in memory it rises to 5.29 GB — measured on 2026-08-03. The footprint isn't permanent: the model is unloaded after a period of inactivity, and even with the model loaded there are still 19 GiB of RAM available out of the machine's 30 GiB total.

The machine on which that configuration was measured is a VPS with 16 Intel Xeon (Skylake) vCPUs and 30 GiB of RAM, with an average load of 1-3% after 65 days of continuous operation — measured on 2026-08-03.

Controlled Degradation, Not an Automatic Cloud Fallback

In the configuration built for a client, if Ollama does not respond the ML service degrades in a controlled way: it returns a deterministic result accompanied by an explicit warning that AI is unavailable, without triggering any fallback to a cloud service. It is a design choice, verified on the client's installation.

A note on the architecture, not on compliance:

This page describes what the architecture built for a client does — no sensitive data leaves the client's infrastructure, no third-party processor is involved. It does not describe this site's configuration, where generation goes through OpenRouter. It does not claim regulatory compliance: if a BAA or a specific attestation is needed, it must be settled with the client's compliance counsel.

Ways we can work together

Project-based

Defined scope, milestone delivery. Indicative range: 8,000–40,000 USD, depends on scope and complexity — confirmed on the scoping call.

Hourly

For focused engagements or technical pairing. Indicative range: 85–150 USD/hour.

Monthly retainer

Ongoing architecture and technical-review presence. Indicative range: 3,000–8,000 USD/month.

Frequently asked questions

Does the data really stay inside the client's infrastructure?

Yes, in the architecture built for the client: inference runs on-prem on the same machine that hosts the data and no third-party cloud service receives the content in transit. It is not this site's configuration, which uses OpenRouter for generation. It is an architectural property that can be verified on the client's installation, not a marketing promise — and it does not replace an assessment by the client's compliance counsel for specific regulatory obligations.

Do we need a BAA (Business Associate Agreement) to get started?

That's a determination for the client's compliance counsel: this page describes the architecture, it does not claim regulatory compliance. If the project handles regulated health data, whether a BAA or a specific attestation is required remains the client's own legal decision.

How much does it cost to get started?

It depends on the engagement model (project, hourly, or retainer) and scope: the indicative ranges above are confirmed on a free, no-obligation scoping call.

Let's talk about your architecture