Local, reversible pseudonymisation

Use Claude on your client files, without leaking any sensitive information.

The best pseudonymisation engine on the market.

Masking everything is easy, but then Claude cannot do the work. Shield masks your clients' data and keeps the law readable: articles, courts, dates and amounts stay in clear.

Free and open source. Everything runs on your computer: Shield replaces names with codes before the text is sent, then puts the real names back in the final document.

This site describes RAGbase Shield 0.4.4.

Your text stays in your browser

What Claude receives

Click Mask to see what Claude receives.

The Shield engine runs here, in your browser. Your text never leaves this page.

Mask the data, keep the law

A tool that masks everything leaks nothing, but Claude can do nothing with the document. The right tool masks your clients' data and leaves the law intact. The overall score measures exactly that.

Public benchmarks, then RAGbase benchmarks · public method · updated on

Comparative trial, summary: word-level F1, with the precision and the recall under each F1, then resources, for Shield 0.4.4 (Fast and Precise), Hexagone 0.3.9 (Fast and Precis) and Presidio 2.2.364. F1, precision and recall: higher is better. Resources: lower is better.
Measure Data set Shield 0.4.4 Hexagone 0.3.9 Presidio 2.2.364
Fastdefault Precisewith AI model Fast Precis
Overall score note 1 F1 by word, higher is better
Overall score note 1 F1 by word, higher is better FR-PII-Bench public · French texts 96.9 (highest F1 in the row)precision 95.0, recall 98.9 96.2precision 93.6, recall 99.1 80.7precision 68.4, recall 98.4 80.7precision 67.7, recall 99.9 66.5precision 69.2, recall 64.1
MAPA note 2 public · Cour de cassation 81.1precision 83.1, recall 79.1 82.8 (highest F1 in the row)precision 78.7, recall 87.3 43.8precision 28.5, recall 95.3 37.9precision 23.8, recall 93.9 63.5precision 51.0, recall 84.1
REF RAGbase · employment law 97.3 (highest F1 in the row)precision 97.9, recall 96.7 97.3 (highest F1 in the row)precision 97.9, recall 96.7 66.7precision 50.6, recall 97.6 61.1precision 44.0, recall 99.9 79.2precision 82.5, recall 76.1
Max note 2 RAGbase · law-firm files 94.9 (highest F1 in the row)precision 95.2, recall 94.7 91.5precision 87.9, recall 95.3 54.0precision 38.1, recall 92.4 48.9precision 32.7, recall 96.2 47.4precision 38.0, recall 63.0
Legal terms changed articles, courts, laws · lower is better
Legal terms changed articles, courts, laws · lower is better MAPA public · Cour de cassation 0.0 % (lowest value in the row) 0.0 % (lowest value in the row) 43.1 % 47.6 % 18.0 %
REF RAGbase · employment law 4.1 % (lowest value in the row) 4.1 % (lowest value in the row) 17.8 % 47.1 % 15.3 %
Max RAGbase · law-firm files 2.1 % (lowest value in the row) 4.2 % 47.2 % 58.3 % 55.6 %
Speed and memory note 3 no graphics card, lower is better
Speed and memory note 3 no graphics card, lower is better Time per document of 10 pages 0.63 s (lowest value in the row) 17.7 s 26.93 s 9 min 1.59 s
Memory peak, same document 79 MB to 80 MB (lowest value in the row) 3.7 GB to 3.8 GB 1.6 GB to 1.7 GB 3.8 GB to 5.4 GB 0.57 GB

Bold: the highest overall score in each row; elsewhere, the lowest value.

  1. 1 Overall score = F1, computed by word. It drops when the tool leaves data readable (recall, R) and when it masks text by mistake (precision, P).
  2. 2 MAPA and Max: precision is a lower limit.
  3. 3 Test machine: 6 cores, 16 GB, no graphics card.

Source: method and detailed results, public on GitHub.

All results and the method

Example: what Claude receives

A document of the folder holds this text. Shield masks it before it is sent.

In the document (fictional example)
M. Thibault Mercadier, domicilié 12 rue des Glycines, 69007 Lyon, conteste son
licenciement par la société Ateliers Brunelac SAS, notifié le 3 mars 2025.
Il réclame 48 000 € devant le conseil de prud'hommes de Lyon (RG n° 25/01234).
Contact : t.mercadier@example.org
Claude receives (real output of Shield 0.4.4)
M. PERSONNE_A, domicilié ADRESSE_1, conteste son
licenciement par la société SOCIETE_A SAS, notifié le 3 mars 2025.
Il réclame 48 000 € devant le conseil de prud'hommes de Lyon (RG n° RG_1).
Contact : EMAIL_1
  • Note what stays readable: the date, the amount, the court. Claude needs them to do the work.
  • Inside one dossier, a person always keeps the same code. "M. Mercadier", "Thibault Mercadier" and "MERCADIER Thibault" all become PERSONNE_A.

Fictional example. Real output of Shield 0.4.4.

Try the engine in your browser

Three rules to remember

  1. Choose the folder in the Shield window. Do not add it to the conversation.

    A file attached or a folder added to the conversation reaches Anthropic before Shield can act. Write "Protect a folder with Shield" and choose the folder in the Shield window. Claude then reads the masked documents.

  2. Do not paste raw text into the chat box.

    Text typed or pasted straight into the conversation is not masked: for a document, go through the protected folder. To talk about a person in the chat, write their code (PERSONNE_A), not their name.

  3. Text already sent cannot be recalled.

    Shield protects only what goes through it. If a name was sent by mistake, Shield cannot undo it.

What reaches the AI provider, what stays with you

Reaches Anthropic, the provider of Claude

  • Masked text with codes (PERSONNE_A, SOCIETE_A, IBAN_1)
  • Facts, dates (except dates of birth), amounts, legal reasoning
  • Courts, laws and articles cited
  • The dossier code (DOSSIER_1) and masked file names
  • Your question

Stays on your computer

  • Real names and real numbers
  • The code-to-name table (the "vault"), encrypted
  • The vault encryption key
  • The real dossier name and folder path
  • The local journal (events, codes and counts only)

The full path of a text is on the How it works page.

Three plans

The engine is free. Two plans are coming for those who want more.

  • Free

    Available now

    €0

    • The core of Shield: the whole masking engine.

    Install

  • Pro

    Coming soon

    €29 per user per month

    • Everything in Free.
    • Shield also finds the passages that point to someone without naming them.
    • Answers to your questions by e-mail.
  • Cabinet

    Coming soon

    €49 per user per month

    • Everything in Pro, plus settings and oversight for the whole firm.

Write to us to be told when it is ready: contact@ragbase.ai

Try RAGbase Shield on your case files

Free. Shield runs on your computer and sends nothing to RAGbase.