shield-halvedGuardrails

Overview

Fiddler Guardrails provide real-time protection for GenAI applications—including LLM-powered systems and agentic AI workflows—by detecting and preventing harmful content, PII leaks, and hallucinations before they reach your users. Built on Fiddler Trust Models—Fiddler's proprietary small language models (SLMs)—Guardrails deliver enterprise-grade security with low-latency, high-throughput performance optimized for production environments.

Use Fiddler Guardrails to:

  • Detect and block harmful or inappropriate content across 11 safety dimensions

  • Prevent personally identifiable information (PII) leaks in user inputs and model outputs

  • Identify hallucinations in retrieval-augmented generation (RAG) applications

  • Protect against prompt injection and jailbreaking attempts

Available Guardrail Types

Fiddler offers three specialized guardrail types, each powered by Fiddler Trust Models:

  • Fast Safety Guardrails - Detect harmful, toxic, or jailbreaking content

  • Fast Faithfulness Guardrails - Identify hallucinations in RAG applications

  • Fast PII Guardrails - Detect and redact sensitive information

circle-info

Guardrails are designed for real-time content blocking with more sensitive thresholds than enrichments used for monitoring and analytics. See the Enrichments guide for batch processing and monitoring use cases.

Getting Started with Fiddler Guardrails

Prerequisites

  • Fiddler Guardrails Account - Sign up for Free Guardrailsarrow-up-right or use your enterprise Fiddler account

  • API Key - Generate your API key from Settings → Credentials

  • HTTP Client - Python 3.8+ with requests library, cURL, or any HTTP client

Guardrails can be invoked directly via REST API from any programming language. The examples below demonstrate usage with cURL and Python.


Fast Safety Guardrails

The Fast Safety model evaluates the safety of text along eleven different dimensions: illegal, hateful, harassing, racist, sexist, violent, sexual, harmful, unethical, jailbreaking, roleplaying.

This model requires a single string input for evaluation and outputs 11 distinct scores (floats between 0 and 1). Set a threshold value > 0.1 for detection (any value > 0.1 indicates unsafe content).

circle-info

Threshold Guidance: For real-time guardrails, a threshold of 0.1 provides sufficient sensitivity for blocking potentially harmful content. For monitoring use cases with enrichments, higher thresholds (0.7+) reduce false positives. See Fast Safety Enrichment for monitoring thresholds.

Fast Safety Guardrails Example Code

Sample Response

Interpreting Safety Scores:

Each dimension returns a score between 0 and 1:

  • Closer to 0 - Safe content

  • Closer to 1 - Unsafe content

  • > 0.1 - Exceeds recommended threshold for real-time blocking


Fast Faithfulness Guardrails

The Fast Faithfulness model (FTL Faithfulness) evaluates the accuracy and reliability of facts presented in AI-generated text responses by comparing them to provided context documents. This uses Fiddler's proprietary Fast Trust Model with response and context inputs.

circle-info

Not to be confused with RAG Faithfulness. Fast Faithfulness Guardrails use Fiddler's proprietary Fast Trust Model (ftl_response_faithfulness) optimized for real-time blocking. RAG Faithfulness is a separate LLM-as-a-Judge evaluator available in Agentic Monitoring and Experiments for diagnostic evaluation. See RAG Health Diagnostics for details.

This model requires a response string and contextual documents as input. The model outputs a single faithfulness score (float between 0 and 1). Set a threshold of < 0.5 for detection (any value less than 0.5 indicates unfaithful content).

circle-info

Threshold Guidance: A score closer to 0 means unfaithful (the LLM hallucinated relative to the provided context), while a score closer to 1 means faithful (the LLM output did not hallucinate and is well-grounded in the provided context). For real-time guardrails, a threshold of 0.5 strikes a balance between sensitivity and accuracy.

Fast Faithfulness Guardrails Example Code

Sample Response

Interpreting Faithfulness Scores:

  • 0.0 - 0.49 - Unfaithful (likely hallucination - block or flag for review)

  • 0.5 - 1.0 - Faithful (response is well-supported by the provided context)

The example above shows a score of 0.194, which is below the 0.5 threshold, indicating the response may contain hallucinated information not supported by the context.


Fast Personally Identifiable Information (PII) Guardrails

The Fast Personally Identifiable Information (PII) model detects, flags, and redacts PII leakage in both user inputs and model responses.

The following 24 label types are supported by the Fast PII Guardrails model: person, address, email, email address, credit card number, credit card expiration date, cvv, cvc, bank account number, iban, social security number, date of birth, ip address, phone number, mobile phone number, landline phone number, passport number, drivers license number, tax identification number, cpf, cnpj, national health insurance number, digital signature, postal code

circle-info

Fast PII Guardrails use Fiddler's proprietary models and support a different entity set than the PII Enrichment (which uses Presidio). For monitoring and batch processing, see the PII Enrichment documentation.

This model accepts a single text string and returns all detected PII spans with their labels, confidence scores, and character offsets.

Fast Personally Identifiable Information (PII) Guardrails Example Code

Sample Response

Response Fields:

  • score - Confidence score (0.0 to 1.0)

  • label - Entity type (e.g., "email", "social security number")

  • text - The detected sensitive information

  • start / end - Character positions in the input text


Summary

Fiddler Guardrails provide real-time protection for GenAI applications through three specialized guardrail types powered by Fiddler Trust Models:

  • Fast Safety Guardrails - Detect harmful content across 11 safety dimensions with a recommended threshold of > 0.1

  • Fast Faithfulness Guardrails - Identify hallucinations in RAG applications with a recommended threshold of < 0.5

  • Fast PII Guardrails - Detect and redact 24 types of sensitive information

All guardrails use Fiddler Trust Models—Fiddler's proprietary small language models—optimized for sub-second latency in production environments.

Next Steps