Usage Guide
This guide describes how to use the Philterd Policy Editor to create and manage your redaction policies for Philter and Phileas.
Creating a Policy
- Set Policy Name: Provide a unique name for your policy.
- Add Filters: Click "Add PII Filter" to start adding data types you wish to redact.
- Configure Strategies: Each filter can have one or more strategies (e.g., REDACT, MASK, RANDOM_REPLACE).
- Redaction Format: If using the
REDACTstrategy, you can specify aredactionFormat(e.g.,{{{REDACTED-%t}}}). - Mask Character: If using the
MASKstrategy, you can specify amaskCharacter(e.g.,*). - Mask Length: If using the
MASKstrategy, you can specify amaskLength(e.g.,5) to force a specific length of the mask. - Replacement Scope: If using the
RANDOM_REPLACEstrategy, you can specify thereplacementScopeasCONTEXTorDOCUMENT. - Truncate Length: For
Zip Codefilters using theTRUNCATEstrategy, you can specify thetruncateLength(1, 2, 3, or 4).
- Redaction Format: If using the
- Conditions: Optionally add conditions like
confidence > 0.8to strategies.
Filter Types
The editor supports a wide range of filters: - Common Filters: Age, Credit Card, Email, SSN, etc. - Location Filters: City, County, State, Zip Code. - AI/NER Filters: PhEye (for ML-based detection). - Custom Filters: Dictionary (upload your own terms).
Advanced Options
Click the Advanced Options button to reveal additional settings: - Post Filters: Remove trailing periods, spaces, or newlines from redacted text. - PDF Settings: Configure redaction color, font types, and DPI for PDF processing. - Splitting: Define how documents should be split (e.g., by newline) during processing.
Testing Policies
Once you have generated a policy, you can test it directly within the editor:
- Generate Policy: Click the "Generate Policy" button.
- Test Policy: Click the "Test Policy" button that appears in the results section.
- Input Text: Paste the text you want to redact into the "Text to Redact" textarea.
- Redact: Click the "Redact" button.
- Review Results:
- Redacted Text: View the output with redactions applied according to your policy.
- Show Explanation: Click this button to see a detailed JSON explanation of why specific terms were redacted and which filters were triggered.
Exporting and Importing
- Generate Policy: Click this to see the JSON representation of your current configuration.
- Copy to Clipboard: Quickly copy the JSON for use in your application.
- Download Policy: Save the policy as a
.jsonfile. - Load Preset: Quickly populate the editor with pre-configured filters for specific domains. Presets are intended to be built upon and customized for your use. They are not intended to be comprehensive policies for any industry. Review them carefully and thoroughly before use.
- Legal: Includes filters for common legal entities like names, cities, states, street addresses, and phone numbers.
- Financial: Focuses on financial identifiers such as credit card numbers, IBAN codes, bank routing numbers, and bitcoin addresses.
- Healthcare: Designed for healthcare data, including patient names, dates, SSNs, phone numbers, zip codes, and email addresses.
- Upload Policy: Choose an existing Philter or Phileas JSON policy to load it back into the editor for further modification.
- Reset Editor: Clear all fields and start over.