Views
No views yet
benign vs
prompt-injection. Sits between user input (or a retrieved RAG chunk,
or a tool output) and your LLM call. Outputs a probability score; you
decide the threshold and the policy.1import { createL5eRunner } from "promptpurify/l5";
2const guard = await createL5eRunner();
3const score = await guard.score(userMessage);
4if (score >= 0.95) return refusal();| Type | ONNX transformer classifier |
| Size on disk | ~14 MB (INT8) |
| Inference | CPU, single-digit ms |
| Runtime | onnxruntime-node (optional peer) |
| Network | None. In-process. |
scripts/bench.mjs re-scores the shipped public eval slice with this
exact model artifact.training/CORPUS_LICENSES.json.sha256sum -c models/l5e/SHA256SUMS| Mirror | URL |
|---|---|
| GitHub Releases | https://github.com/securelayer7/PROMPTPurify/releases |
| Hugging Face Hub | Securelayer7/promptpurify |
SECURITY.md →
info@securelayer7.net