Detect and redact sensitive information before it reaches ChatGPT, Claude, Gemini, MCP tools, RAG pipelines, or internal AI systems.
Click any example to instantly see SPG sanitize the prompt before it reaches an LLM
Customer PII sent alongside a support summary request to an AI agent.
Patient PHI in a prompt asking an LLM to summarise a medical record.
HR data with salary, ID, and email sent to an internal AI assistant.
A management summary request containing several sensitive identifiers.
Runs entirely in your browser — no text is ever sent to a server
These examples show where simple regex stops and where the full Java library with OpenNLP NER takes over
Each layer catches what the others miss. Matches are de-duplicated and merged into a single ranked result.
Available on Maven Central. Works with Spring Boot, Quarkus, Micronaut, or plain Java 17+.
Add one dependency, zero configuration required.
<dependency> <groupId>io.github.sushegaad</groupId> <artifactId>semantic-privacy-guard</artifactId> <version>1.6.0</version> </dependency>
Help other Java developers discover an open-source AI privacy firewall that runs entirely on-prem — no cloud, no cost.
⭐ Star on GitHub