WEBVTT

00:00.560 --> 00:03.640
Here is the list of validators supported by guardrails.

00:04.040 --> 00:04.280
I.

00:04.320 --> 00:11.280
As of today, let's quickly walk through a couple of these validators to give you a better understanding

00:11.480 --> 00:17.320
of how they function and ensure the integrity of our outputs.

00:17.440 --> 00:19.840
First, we have the valid range validator.

00:22.600 --> 00:26.120
This is crucial when our LLM outputs numerical data.

00:27.200 --> 00:35.080
It checks that the numbers like user's age are within a sensible bracket, say 18 to 65 for adult services.

00:35.680 --> 00:42.920
If the LLM suggests someone is 120 years old, a valid range will flag this as an error based on our

00:42.920 --> 00:44.160
specifications.

00:46.000 --> 00:48.280
Next is the regex match validator.

00:50.600 --> 00:52.800
It's all about format compliance.

00:53.600 --> 01:00.000
If our LLM generates an email address, regex match ensures it fits a standard email pattern.

01:01.120 --> 01:08.120
This is how we maintain professional and correct communication formats in our outputs, and there is

01:08.120 --> 01:10.840
also a Also a validator for PII filter.

01:12.160 --> 01:17.760
In today's world, protecting personally identifiable information is non-negotiable.

01:18.880 --> 01:26.600
The PII filter scans our LMS output for sensitive data like Social Security numbers, and reacts them

01:26.600 --> 01:31.760
to maintain privacy and compliance with regulations.

01:31.880 --> 01:37.080
Validators come in various forms, each tailored to its specific needs.

01:38.040 --> 01:41.080
Some require specific arguments for execution.

01:41.760 --> 01:47.880
For instance, the valid range validator needs minimum maximum bounds.

01:47.920 --> 01:53.000
Others leverage metadata additional parameters to enhance their functionality.

01:54.280 --> 02:01.960
In instances where built in validators fall short, we have the flexibility to craft custom validators.

02:02.040 --> 02:08.040
Whether it's simple function or a sophisticated class inheriting from the validator base class, custom

02:08.040 --> 02:17.160
validators empower us to define validation processes according to our unique requirements.

02:17.200 --> 02:17.560
Mhm.
