Hjem » Statistics Denmark

A hybrid AI architecture made secure search, internal chat and direct API access possible

Client

Statistics Denmark

Industry

Public data / public infrastructure

Challenge

Using AI on sensitive data without letting raw data leave the internal infrastructure

Results

A hybrid AI architecture made secure semantic search, internal chat and direct API access for external AI agents possible

Scope

AI on sensitive data – without sending it out of the building

Statistics Denmark works with some of Denmark's most sensitive public data. That's why solutions like ChatGPT and Gemini weren't an option from the start.

The project began as an internal research project to explore how AI could be used at scale at Statistics Denmark.

The organization already had strong internal development skills and had invested in its own infrastructure, including newer GPUs for running AI models internally. So the question wasn't whether AI could be used, but how to create solutions that were useful, scalable and secure – without becoming dependent on commercial AI APIs.

Among other things, the project included:

  • designing an AI architecture where raw data never leaves the internal systems
  • semantic search across large and complex datasets
  • an internal chat solution for working with sensitive data
  • a more stable way for external AI agents to access public data
  • training employees in areas such as observability, tools, compliance and AI workflows

The solution

High security without giving up what AI makes possible

The architecture was built on a simple principle:

Raw data stays internal. Only the necessary vector representations can be used outside.

Internal models on Statistics Denmark's own infrastructure handle anonymization and vectorization of data. External AI models only work with these representations and never get access to the underlying raw data.

This creates a hybrid solution that combines the security of a closed environment with the flexibility and capacity of external AI models.

As part of the solution, BCT also built an internal chat tool based on a large open-source model. It gave employees the ability to work with sensitive data through natural language in a secure environment.

In addition, we set up an MCP server around Statistics Denmark's public API. This lets external AI agents retrieve structured data directly from the API instead of scraping the website.

The result wasn't just new AI tools, but a more scalable foundation for Statistics Denmark's continued work with AI.

Process

BCT designed and implemented the technical solution while helping the organization build the internal skills needed to run it going forward.

Hybrid AI architecture

We designed an architecture where internal models handle anonymization and vectorization on Statistics Denmark's own infrastructure.

External models only work with the vector representations. That way, raw data stays protected while the organization can use modern AI models where it makes sense.

Vector databases and semantic search

Statistics Denmark's data tables are large and complex and can be hard to navigate.

We made the data searchable through embeddings and vector databases, so users can search by meaning and context to a greater extent instead of having to know the exact structure or wording in advance.

MCP server for the public API

External AI agents could previously create unnecessary load by scraping the website.

So we built an MCP server on top of the existing API, so AI agents can instead get structured access to public data directly from the backend.

This gives more stable access to data and reduces the load on the user-facing part of the website.

Internal chat solution

We built a secure internal chat environment based on an open-source model with 120 billion parameters, running on Statistics Denmark's own infrastructure.

Here, employees can work with vectorized, sensitive data through natural language. The solution has also been developed with the option of dynamic visualizations.

Training and skills building

The technology was only one part of the project.

Over six months, we therefore ran a training program focusing on AI observability, automation tools, integration into development environments and compliance, among other things.

The goal was for Statistics Denmark to have not just a solution, but also the internal skills to continue working with AI on its own.

Results

The result was an AI solution where Statistics Denmark didn't have to choose between security and functionality.

Sensitive data could now be vectorized, searched and used in AI-based workflows without leaving the internal infrastructure.

At the same time, external models could be used when more capacity was needed – without getting access to the underlying raw data.

This made it possible to:

  • search semantically across complex internal datasets
  • give employees access to an internal AI chat for sensitive data
  • replace scraping by external AI agents with structured API access
  • reduce the load on the website through direct access to the backend
  • strengthen internal AI skills through training and hands-on work

More broadly, the project showed how organizations with high security and compliance requirements can work with AI without giving up either control or opportunities.

Have your security requirements stood in the way of AI until now?

If you work with sensitive data and are trying to figure out what's actually possible within your security and compliance requirements, let's talk.

Talk to us about your project

More cases

See all cases
The most human AI company in the world.
Born digital. Built different.
Contact
info@blackcapitaltechnology.com
Mølleå 3-5,
9000 Aalborg
Denmark
(+45) 39 39 42 43
CVR:
DK-42380784
Tordenskiolds gate 2,
0160 Oslo
Norway
(+47) 907 00 863
Org. nr.:
NO-933435458