AI Wisdom
๐Ÿ›ก๏ธ

Guardrails & Safety

Input/output validation, PII protection, content moderation, and prompt injection defence.

Production ยท 2Stable ยท 4Experimental ยท 1Superseded ยท 18 total
โ† All categories
4/5

Add input/output validation and safety rails to LLM calls

Cleanest Python API for defining validators on LLM inputs and outputs. RAIL spec and Pydantic-based guards. Retry on failure is well-designed. Server mode needed for prod latency.

NeMo Guardrails

Experimental
3/5

NVIDIA toolkit for programmable guardrails via Colang language

Unique dialogue-flow approach using Colang DSL. Best for complex multi-turn conversation policies. Steeper learning curve than Guardrails AI but richer for conversation steering.

Open Source
4/5

Meta's fine-tuned safety classifier for prompt and response screening โ€” now natively multimodal

Production-deployable content moderation model, shipped alongside the Llama 4 herd with native image+text screening in a single dense model (no separate vision variant needed anymore). Run it as a sidecar to screen every input/output. MLCommons hazard taxonomy built in. Open-weight, and small enough to run on a single GPU.

Open Source

Rebuff

Superseded
2/5

Prompt injection detection API for LLM applications

Built for prompt injection detection with canary tokens and an LLM classifier, but the repository was archived on May 16, 2025, so it no longer gets updates. Read it to learn the technique rather than adopting it.

Open Source
4/5

Data protection and anonymization for PII in LLM pipelines

Open-source PII detection and anonymization library. Detect-and-replace SSN, emails, credit cards before sending to LLMs. Useful support for GDPR and HIPAA work in RAG.

Open Source
4/5

Real-time prompt injection and jailbreak protection API

Prompt injection detection as a service. Managed API means zero infra. Integrates as middleware. Best for teams that want safety without building classifiers.

4/5

Microsoft's content moderation API for text and images

Enterprise-grade content filtering integrated into Azure OpenAI. Fine-grained severity thresholds for hate, violence, sexual content, and self-harm.

4/5

Principle-based self-improvement for harmlessness and helpfulness

Pioneering approach where the model critiques and revises its own outputs based on a set of principles. Built into Claude models. Influence on the field is massive even if not a standalone product.

Proprietary