A model can repeat what it was trained on, and personal information that goes into a training set cannot be trained back out. So the redaction has to happen before training, across the whole dataset, and that is where the usual tools stop fitting. An API that redacts one request at a time is the right shape for data as it moves through your systems. It is the wrong shape for a few hundred gigabytes that already sit in storage, and sending that data to someone else’s service to be redacted defeats the purpose of redacting it.
Philter Batch is built for datasets of that size, hundreds of gigabytes of documents already in object storage. It redacts the whole dataset in one job, on a temporary cluster in your own cloud, and writes the redacted output back to your storage. It is open source under the Apache License 2.0, and it uses Phileas, the same redaction engine as Philter, with the same policy format.
It was designed first for AI training data. Support tickets, chat logs, emails, and documents headed for pre-training or fine-tuning can have names, contact details, and identifiers replaced with labels such as [PERSON] and [EMAIL], using a policy like the library’s LLM training data preparation policy. The text keeps its shape for training, with far less personal data in it. The same job fits anywhere else a whole dataset has to be redacted before it goes somewhere new. That includes an analytics copy for people who need the patterns in the data rather than the people in it, and data you are about to share with a partner or vendor.
Built for hundreds of gigabytes
A redaction API handles one document per request, which is fine for a stream of records and slow for a few hundred gigabytes sent from a single caller. Philter Batch starts instead by listing everything in the bucket and dividing it into shards of about 128 MB, balanced by size so that no worker is left holding all the large files. A plain text file too big for one worker is split into ranges of lines and shared out. Then every worker you give it claims shards and redacts them in parallel, each running Phileas and the PhEye model in its own process, with no Philter server in between. Add workers and the job finishes sooner.
How long a run takes depends on what is in the data as much as on its size. A gigabyte of plain text holds far more words to check than a gigabyte of PDFs or spreadsheets. So rather than quote a rate per gigabyte, Philter Batch measures its throughput on a sample of your own files and estimates the full job from that.
A sample comes first
Before Philter Batch redacts the whole dataset, it redacts a sample, spread across the file types and sizes in your data, and writes a report: the redacted text with each replacement highlighted, what was found, and an estimate of how long the full job will take. The report shows redacted text only, never an original value beside its replacement. By default the rest of the dataset waits until someone approves the sample. If the policy needs work, you change it and start again, and nothing beyond the sample has been processed.
Detection is configurable and probabilistic, and the sample is where you find out how a policy does on your data rather than on someone else’s. For a measured answer, score the policy against records your reviewers have marked with Philter Scope before the full run.
Built to run unattended
A job of a few hundred gigabytes runs for hours, and it should not need someone watching it. Philter Batch runs its workers on low-cost Spot instances, which the cloud provider can reclaim at any time. A worker that is stopped saves its progress, another worker picks up its share, and a run that stops resumes where it left off, even on a new cluster.
That works because the run keeps all of its state in your storage, beside the data. The workers coordinate through conditional writes to the object store, so there is no database to run, and the cluster itself holds nothing. The design borrows from the OpenSearch Migration Assistant’s backfill, whose workers coordinate through shared state rather than a central scheduler.
What you get back
Philter Batch writes redacted text as JSONL records for a training pipeline, redacted copies of the original files, or both. Records carry an opaque ID instead of the file name, since file names often contain names, and the mapping back to your files stays in a separate manifest that you keep. A file that cannot be processed is set aside with a reason and is never copied to the output.
On AWS, its Terraform creates everything a job needs: an EKS cluster in your account whose nodes have no route to the internet, the images pulled from your own registry, and the permissions the workers need. When the job is done, you destroy the stack, so you pay for the cluster only while it runs. The Helm chart and the Argo workflow behind it can also be installed on other Kubernetes clusters.
Where it starts
It reads plain text, CSV, PDF, Word, Excel, RTF, and email files, and redacts each with the Phileas service for its type. Planned next are Google Cloud Storage and Azure Blob Storage.
If you have a dataset to redact, especially one headed for model training, talk to us. We can run it with you through an AI training data engagement, or you can start from the code on GitHub.