Introducing the LangWatch PII Redaction Model
Keeps PII (personally identifiable information) out of your agent traces.
hi, it's mara jensen, my order never arrived. can you send it to Keizersgracht 221 instead? call me on +31 6 1234 5678
hi, it's [PERSON], my order never arrived. can you send it to [LOCATION] instead? call me on [PHONE_NUMBER]
Personal data spreads to every tool that reads your traces
Your customer shares their address once, and every copy of that conversation keeps it.
Your support agent needs the address for one tool call. After that, the same message sits in your traces, and from there it gets copied into your evals and datasets.
GDPR (Article 5) says you keep personal data only where the job needs it. Your eval set does not need your customer's address.
Your traces are JSON, tool calls and chat in many languages, often with names typed in lower case. The LangWatch PII Redaction Model reads them as they are.
hi, it's mara jensen, my order never arrived. can you send it to Keizersgracht 221 instead? call me on +31 6 1234 5678
- Tracesmara jensen · Keizersgracht 221
- Eval runsmara jensen · Keizersgracht 221
- Datasetsmara jensen · Keizersgracht 221
- Annotation queuemara jensen · Keizersgracht 221
- CSV exportmara jensen · Keizersgracht 221
Your agent does not need the customer's name
You do not need to sacrifice privacy and safety for your agent to do great work.
hi, it's [PERSON], my order never arrived. can you send it to [LOCATION] instead? call me on [PHONE_NUMBER]
Sure! Your order will go to the address on file.
You still capture what you need to build evals and improve your agents, without increasing the privacy risk.
- 1
Traces still read
When you debug a conversation, it reads the same, with [PERSON] in place of the name.
- 2
Evals still score
Your eval still checks that your agent confirms the new address, written as [LOCATION].
- 3
Datasets stay shareable
Copy a masked conversation into your test set, and the markers travel with it.
More PII redacted on every test
The gap is widest in plain text across many languages: the model redacts 97% of the PII there, and general-purpose tools let a fifth or more through.
Where it is weaker: code and logs, where it redacts 86% of the PII. In agent traces, it also masks 5.1% of the text that is not personal data.
PII redacted is the share of labelled personal data values a tool masks completely. The chart shows four of the six tests, the ones closest to agent data: agent traces (950 items), business text (990), plain text across many languages (1,769) and code and logs (1,000).
The test items are synthetic and public text, labelled from how each item was built and checked by two blind model passes. The other two tests are policy text and look-alike ids. On both, the model left less personal data in than AWS Comprehend and Presidio. It also masked more text that is not personal data than they did.
The LangWatch PII Redaction Model ran on its shipped image on 3 Nov 2026, AWS Comprehend through DetectPiiEntities with no confidence threshold on 29 Oct 2026, and Presidio with its default settings and English models. The scores compare the tools with each other; on your own traces the figures will differ.
Half the price of AWS Comprehend
The model costs $2 per million tokens. Running your own Gemma 4 on a GPU costs about $50, because the GPU runs all month whether you send text or not.
List prices on 2 Dec 2026, at about 4 characters per token. AWS Comprehend: DetectPiiEntities, first 10M units. Gemma 4 31B: one H100 on AWS (p5.4xlarge, on demand), always on, at 100M tokens a month.
The model card for your security review
You can send it to your security team before they ask.
- Finds
- Health IDs, passports, crypto wallets, IBANs, driving licences, voter IDs, professional registry IDs, tax IDs, national IDs, social security numbers, bank accounts, card numbers, IP addresses, names, emails, phone numbers and street addresses.
- Writes
- A typed marker in place of each value.
[PERSON][EMAIL_ADDRESS][PHONE_NUMBER][LOCATION][CREDIT_CARD][IBAN_CODE] - Checks
- Card numbers against their checksum before masking them.
- Reads
- Your traces as they are, JSON and tool calls included.
- Runs
- Inside LangWatch, on LangWatch Cloud or in your own cluster.
- Keeps
- Only the marker. The values it redacts are never written to your traces.
- Leaves
- City and country names as they are. Street addresses become [LOCATION].
Switch it on and your next trace is redacted
- 1
Ask us to turn it on
On LangWatch Cloud we switch the model on for your organization.
- 2
Set PII redaction to Strict
In Settings, Data Privacy, pick your organization, or one of your teams or projects.
- 3
Your admin confirms the switch
Your organization admin accepts the switch once.
Also redacts names and street addresses
Questions
Does LangWatch keep the original values?
No. The model runs at ingestion, before your traces are stored, so for each value it finds only the marker is saved, and the original cannot be restored.
Can I run the LangWatch PII Redaction Model in my own cluster?
Yes, on an Enterprise licence. It runs next to the rest of your self-hosted LangWatch, from the signed Docker image langwatch/pii-redaction-model. See the sizing guide.
Can I keep some values unmasked?
Yes. Add exceptions as regular expressions, such as your internal id format, and LangWatch leaves those values as they are.
Does it mask traces I already stored?
No. It masks your new traces from the moment you turn it on. Your traces stored before keep their content.
What happens if the model cannot be reached?
LangWatch falls back to rules that mask emails, phone numbers, card numbers, IP addresses and national IDs. It marks your span, so you can find the traces where names were not masked.
Which kinds of personal data does it find?
It finds seventeen kinds, from names and street addresses to passports and health IDs. The card above lists them all.
Your agents and your users, safer
When you tell us which organization, we switch it on.