protectai/deberta-v3-base-prompt-injection-v2
← All models · Prompt-injection detection
use case · multi-model · 2 WASM models · ~849 MB total
Before sending user text to an upstream LLM, production apps need both safety and privacy checks. This pipeline runs two independent models locally in separate Web Workers: Stage 1 (DeBERTa-v3 Guard) screens for prompt injection, and Stage 2 (BERT NER) detects and redacts people, organizations, and locations — producing a combined Cleared / Quarantined verdict plus a PII-redacted payload (for outbound forwarding or safe security audit logging).
Stage 1: protectai/deberta-v3-base-prompt-injection-v2 (~739 MB fp32, WASM).
Stage 2: Xenova/bert-base-NER (~110 MB q8, WASM). Cached models auto-initialise.
Try a preset combining safety + PII states:
protectai/deberta-v3-base-prompt-injection-v2
Xenova/bert-base-NER (q8)
Cleared prompts can be forwarded safely with entities masked; quarantined prompts are blocked from the LLM while still redacted for privacy-safe security logging.