How PD-AI works
The quality of answers on data protection law depends less on the model or a clever prompt than on how the legal texts are structured. Here is why the usual approach fails and what that means for the answers you get.
Where a plain RAG setup breaks
The standard recipe is to cut documents into chunks, embed them, store them in a vector database and put a model on top. It works in a demo. On data protection law it falls apart quickly.
The reason is that the smallest unit of storage and the smallest unit of meaning in law are not the same. A user asks about a specific requirement; semantic search finds a similarly worded paragraph — but the answer also depends on an exception in the next paragraph, a definition in another article or a regulator’s guidance. The model sees one matching chunk and answers as if that were enough.
Small chunks lose context, large ones make retrieval noisy. The problem is not that the model is not smart enough — the document is represented too flatly.
What we do instead of flat search
In PD-AI a law is not a set of text fragments but a linked structure. Requirements are addressable by article and paragraph, lists and definitions exist as objects of their own, and links between requirements — including mandatory ones — are recorded.
In practice the system does not answer from one similar-looking chunk. Having found a relevant requirement, it checks what must be read with it — an exception, a definition, a reference to guidance — and assembles the minimal sufficient context before answering.
Several retrieval strategies run on top of this structure: the same question may need search by meaning, an exact match on an article number and a lookup of a definition. The results are merged into one context.
Answers you can verify
An answer must cite a specific article or paragraph in a form you can open and read — “GDPR, Art. 6(1)(b)”. This is a requirement of the system, not a wish addressed to the model.
If the corpus contains nothing relevant, the right behaviour is to say so rather than compose a plausible answer from the model’s memory. Your data protection officer must be able to open the source and confirm that nothing was made up.
How we measure quality
We maintain our own evaluation set — real questions selected from user logs, labelled by type, topic and difficulty. The same set is run through several systems: PD-AI with our retrieval and general-purpose models without a domain corpus.
Each answer is scored independently against one rubric rather than by overall impression. The criteria:
The main finding of these runs is not about how smart models are. A general-purpose model often explains the logic as well or better — but it loses where you need to open the law and confirm what was said. The difference between systems lies not in the quality of reasoning but in verifiability.
Honest about the limits
- The corpus is connected per jurisdiction. The core blocks of data protection law are structured for the jurisdictions we work in; the law of a new country is connected under contract. The indexing architecture is built to scale, so adding a corpus does not require reworking the core.
- Retrieval does not remove the problem, it moves it. When search finds several similar provisions, or a question needs both legal analysis and several documents at once, quality drops. We track this with a separate error taxonomy.
- An honest refusal beats a confident answer. If the required document is not in the corpus, the system says so plainly.
Try it on your own question
In a demo we answer your questions live, with references to the articles