Skip to content

Blog Post Submission: Deterministic Safety and PII Checks in MLflow with Guardrails AI #461

@debu-sinha

Description

@debu-sinha

Blog Post Submission

Post Type

  • Deep Dive
  • How-To
  • Use Case
  • Tips / Best Practices
  • Features

Topics

  • GenAI
  • Advanced
  • Deployment
  • Core

Title

Deterministic Safety Scoring in MLflow: Integrating Guardrails AI Validators

Abstract

MLflow serves approximately 29 million downloads per month (PyPI Stats, Feb 2026). This post documents the Guardrails AI integration I built for MLflow, which shipped in MLflow 3.10.0.

Building on the scorer pattern designed by @smoorjani (DeepEval/RAGAS), I extended it to support a new category - deterministic validators that don't require LLM calls:

  1. Deterministic evaluation - no LLM calls required, repeatable outcomes for compliance
  2. Cost and latency efficiency - no token costs, millisecond execution
  3. Available validators - ToxicLanguage, NSFWText, DetectPII, DetectJailbreak, SecretsPresent, GibberishText
  4. Hybrid patterns - combining deterministic and LLM-based evaluation in a single pipeline

Guardrails AI has 5,000+ GitHub stars. This integration brings their validators directly into MLflow's evaluation workflow.

Target Length

~1500 words (medium-length deep dive)

Related Artifacts

  • PR: #20038 (Guardrails AI integration, +761 lines)
  • Release: MLflow 3.10.0
  • Original pattern: DeepEval/RAGAS by @smoorjani

Provenance

Consent Acknowledgment

  • Guardrails AI maintainer @zayd-simjee has acknowledged the integration

Additional Context

This post differentiates from "yet another LLM-judge" by focusing on deterministic validation - a distinct category that required adapting the scorer pattern for non-LLM outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions