Guardrails AI
Hub
Blog
Docs
Loading ...
The Guardrails Hub
Search and explore vast world of guardrails validators through lightning-fast search
65 validators
Validators
65 / 65
Ban List
Select
Validates that the output does not contain banned words, using fuzzy search.
string
Brand risk
ML
Bert Toxic Language Validator
Select
Validates that the input string does not contain toxic language based on a BERT model.
Brand risk
Bias Check
Select
Validates that the text is free from biases related to age, gender, sex, ethnicity, religion, etc.
string
Brand risk
ML
Competitor Check
Select
Flags mentions of competitors. Fixes responses by filtering out competitor names.
string
Brand risk
ML
Contains String
Select
A Guardrails AI validator to check if the LLM-generated text contains a substring.
string
Formatting
Cucumber Expression Match
Select
Validates that the input string matches a specified cucumber expression.
string
Brand risk
ML
Detect Jailbreak
Select
Detects attempts to circumvent safeguards in model conditioning.
string
Brand risk
+2 more
ML
Detect PII
Select
Detects personally identifiable information (PII) in text, using Microsoft Presidio.
string
Data Leakage
ML
Detect Prompt Injection
Select
Finds prompt injection using the Rebuff prompt library.
Jailbreaking
Detect System Prompt Leakage
Select
Detects system prompt leakage using fuzzy string matching (via `rapidfuzz`) to compare the LLM's response against a provided system prompt.
Data Leakage
Endpoint Is Reachable
Select
Checks if an endpoint can be reached by making a request to it.
string
Code Exploits
+1 more
Ends With
Select
Check if a string or list ends with a specified string or list.
list
string
+1 more
Exclude SQL Predicates
Select
This rule checks for the use of particular SQL predicates in the query. It is important to exclude SQL predicates from the query to prevent SQL injection attacks.
string
sql
+3 more
Extracted Summary Sentences Match
Select
This validator checks if the extracted summary sentences match the original document.
string
Brand risk
+1 more
ML
Gibberish Text
Select
A Guardrails AI validator to detect gibberish text.
string
Brand risk
+3 more
ML
Guardrails PII
Select
Detects personally identifiable information (PII) in text.
string
Data Leakage
ML
Has Url
Select
Ensure content contains a url.
string
Code Exploits
+1 more
Internal Domains
Select
Identifies internal domains in a string output.
Data Leakage
Llama Guard
Select
A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.
string
Etiquette
ML
LLM Critic
Select
Grade the generated response based on provided criteria.
string
Etiquette
+1 more
LLM
Logic Check
Select
Validates logical consistency and detects logical fallacies in the model output. Attempts to correct logical fallacies if found.
string
Brand risk
ML
Lowercase
Select
Passes when totally lowercase.
string
Formatting
Mentions Drugs
Select
Validates that the generated text does not contain any drug names.
Etiquette
NSFW Text
Select
A Guardrails AI validator to detect NSFW text.
string
Etiquette
ML
One Line
Select
This validator checks if the input is a single line of text.
string
Formatting
Politeness Check
Select
Ensure generated output is polite.
string
Etiquette
LLM
Presidio Gliner PII
Select
Detects personally identifiable information (PII) in text.
Data Leakage
Profanity Free
Select
Checks for profanity in text, using the alt-profanity-check library.
string
Brand risk
+1 more
ML
Prompt Injection Detector
Select
A Guardrails validator that scores prompts for injection attempts via a secondary LLM.
Jailbreaking
Provenance Embeddings
Select
Compares embeddings of generated and source texts to calculate provenance.
string
Brand risk
+1 more
ML
Provenance LLM
Select
A validator for ensuring the factuality and reducing brand risk in generated content.
string
Brand risk
+2 more
ML
Provenance NLI
Select
Detects and removes hallucinations from LLM-generated text using an NLI model to validate it against a provided context.
Factuality
QA Relevance LLM Eval
Select
Makes a second request to the LLM, asking it if its original response was relevant to the prompt.
string
Brand risk
+1 more
LLM
Quotes Price
Select
Validates that the generated text contains a price quote.
Brand risk
Reading Level
Select
Parses text to find its readability as a US grade level number (0-12).
string
Brand risk
+1 more
Reading Time
Select
Ensures that any generated text is less than a maximum expected reading time.
string
Formatting
Redundant Sentences
Select
Identifies redundant sentences in text using fuzzy matching.
string
Etiquette
ML
Regex Match
Select
Ensure content matches a provided regular expression. This can be used to validate content such as email addresses, phone numbers, and more.
string
Formatting
Relevancy Evaluator
Select
Validates that the reference text contains information relevant to answering the original question.
Brand risk
Response Evaluator
Select
Evaluate generated output using a provided question.
string
Etiquette
+2 more
LLM
Responsiveness Check
Select
Ensure generated output is polite.
string
Factuality
LLM
Restrict To Topic
Select
Checks that a text stays on a set of valid topics and avoids invalid ones.
Etiquette
Saliency Check
Select
Checks if a generated summary covers topics present in a source document.
string
Factuality
LLM
Secrets Present
Select
Detects the secrets present in text by matching against common patterns for API keys and other sensitive information.
string
code
+2 more
Rule
Sensitive Topic
Select
A Guardrails AI validator that detects sensitive topics in text.
string
Etiquette
ML
Shield Gemma
Select
A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.
string
Etiquette
ML
Similar To Document
Select
Checks if some generated text is similar to a provided document.
string
Factuality
ML
Similar To Previous Values
Select
Checks if a value is similar to a list of previously known correct values.
string
integer
+1 more
ML
Sky Validator
Select
Validates that the input string does not contain negative statements about Sky Electric.
Brand risk
Toxic Language
Select
Identifies and flags toxic language in text to ensure communications remain professional and appropriate.
string
Etiquette
ML
Toxic Language LLM
Select
Detects toxic language in LLM-generated text using an LLM as the detection backbone. Evaluates text across seven toxicity categories: toxicity, severe toxicity, obscene, threat, insult, identity attack, and sexual explicit content.
string
Etiquette
LLM
Two Words
Select
Passes when value is *exactly* two words.
string
Formatting
Unusual Prompt
Select
A Guardrails AI input validator that validates a prompt for unusualness and trickery.
string
Etiquette
+1 more
LLM
Uppercase
Select
Passes when totally uppercase.
string
Formatting
Valid Address
Select
Verifies an LLM-generated address using Google Maps' Address Validation API.
string
Factuality
+1 more
Valid Choices
Select
Checks if a given string is a valid choice from a list of choices.
string
Formatting
Valid HTML
Select
Guardrails validator that checks for HTML parseability.
string
Formatting
Valid JSON
Select
Ensure content is parseable as valid JSON.
string
object
+3 more
Valid Length
Select
Ensures the length of a string or list falls between a minimum and maximum.
string
Formatting
Valid OpenAPI Specification
Select
Ensures that a generated output is a valid OpenAPI Specification.
string
object
+2 more
Valid Range
Select
Assess whether a generated number is between a maximum and minimum value.
integer
float
+1 more
Valid SQL
Select
Validates whether the given SQL code is syntactically correct using. Optionally accepts a database schema to validate against using SQLAlchemy.
sql
Formatting
+1 more
Valid URL
Select
Validates that text is a syntactically-valid URL.
string
Formatting
Web Sanitization
Select
Scans LLM outputs for strings that could cause browser script execution downstream.
string
Code Exploits
Wiki Provenance
Select
A Guardrails AI validator that detects and removes hallucinated text based off Wikipedia.
string
Factuality
0 Validators selected
Generate Code
Filters
Use Cases
Chatbots
Customer Support
Structured data
RAG
CodeGen
Summarization
Text2SQL
Risk Category
Brand risk
Formatting
Etiquette
Jailbreaking
Data Leakage
Code Exploits
Invalid Code
Factuality
Infrastructure Requirements
ML
NA
LLM
Rule
Content Type
string
list
sql
code
integer
object
float
Language
en
The Guardrails Hub
Search and explore vast world of guardrails validators through lightning-fast search
65 validators
Validators
65 / 65
Ban List
Select
Validates that the output does not contain banned words, using fuzzy search.
string
Brand risk
ML
Bert Toxic Language Validator
Select
Validates that the input string does not contain toxic language based on a BERT model.
Brand risk
Bias Check
Select
Validates that the text is free from biases related to age, gender, sex, ethnicity, religion, etc.
string
Brand risk
ML
Competitor Check
Select
Flags mentions of competitors. Fixes responses by filtering out competitor names.
string
Brand risk
ML
Contains String
Select
A Guardrails AI validator to check if the LLM-generated text contains a substring.
string
Formatting
Cucumber Expression Match
Select
Validates that the input string matches a specified cucumber expression.
string
Brand risk
ML
Detect Jailbreak
Select
Detects attempts to circumvent safeguards in model conditioning.
string
Brand risk
+2 more
ML
Detect PII
Select
Detects personally identifiable information (PII) in text, using Microsoft Presidio.
string
Data Leakage
ML
Detect Prompt Injection
Select
Finds prompt injection using the Rebuff prompt library.
Jailbreaking
Detect System Prompt Leakage
Select
Detects system prompt leakage using fuzzy string matching (via `rapidfuzz`) to compare the LLM's response against a provided system prompt.
Data Leakage
Endpoint Is Reachable
Select
Checks if an endpoint can be reached by making a request to it.
string
Code Exploits
+1 more
Ends With
Select
Check if a string or list ends with a specified string or list.
list
string
+1 more
Exclude SQL Predicates
Select
This rule checks for the use of particular SQL predicates in the query. It is important to exclude SQL predicates from the query to prevent SQL injection attacks.
string
sql
+3 more
Extracted Summary Sentences Match
Select
This validator checks if the extracted summary sentences match the original document.
string
Brand risk
+1 more
ML
Gibberish Text
Select
A Guardrails AI validator to detect gibberish text.
string
Brand risk
+3 more
ML
Guardrails PII
Select
Detects personally identifiable information (PII) in text.
string
Data Leakage
ML
Has Url
Select
Ensure content contains a url.
string
Code Exploits
+1 more
Internal Domains
Select
Identifies internal domains in a string output.
Data Leakage
Llama Guard
Select
A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.
string
Etiquette
ML
LLM Critic
Select
Grade the generated response based on provided criteria.
string
Etiquette
+1 more
LLM
Logic Check
Select
Validates logical consistency and detects logical fallacies in the model output. Attempts to correct logical fallacies if found.
string
Brand risk
ML
Lowercase
Select
Passes when totally lowercase.
string
Formatting
Mentions Drugs
Select
Validates that the generated text does not contain any drug names.
Etiquette
NSFW Text
Select
A Guardrails AI validator to detect NSFW text.
string
Etiquette
ML
One Line
Select
This validator checks if the input is a single line of text.
string
Formatting
Politeness Check
Select
Ensure generated output is polite.
string
Etiquette
LLM
Presidio Gliner PII
Select
Detects personally identifiable information (PII) in text.
Data Leakage
Profanity Free
Select
Checks for profanity in text, using the alt-profanity-check library.
string
Brand risk
+1 more
ML
Prompt Injection Detector
Select
A Guardrails validator that scores prompts for injection attempts via a secondary LLM.
Jailbreaking
Provenance Embeddings
Select
Compares embeddings of generated and source texts to calculate provenance.
string
Brand risk
+1 more
ML
Provenance LLM
Select
A validator for ensuring the factuality and reducing brand risk in generated content.
string
Brand risk
+2 more
ML
Provenance NLI
Select
Detects and removes hallucinations from LLM-generated text using an NLI model to validate it against a provided context.
Factuality
QA Relevance LLM Eval
Select
Makes a second request to the LLM, asking it if its original response was relevant to the prompt.
string
Brand risk
+1 more
LLM
Quotes Price
Select
Validates that the generated text contains a price quote.
Brand risk
Reading Level
Select
Parses text to find its readability as a US grade level number (0-12).
string
Brand risk
+1 more
Reading Time
Select
Ensures that any generated text is less than a maximum expected reading time.
string
Formatting
Redundant Sentences
Select
Identifies redundant sentences in text using fuzzy matching.
string
Etiquette
ML
Regex Match
Select
Ensure content matches a provided regular expression. This can be used to validate content such as email addresses, phone numbers, and more.
string
Formatting
Relevancy Evaluator
Select
Validates that the reference text contains information relevant to answering the original question.
Brand risk
Response Evaluator
Select
Evaluate generated output using a provided question.
string
Etiquette
+2 more
LLM
Responsiveness Check
Select
Ensure generated output is polite.
string
Factuality
LLM
Restrict To Topic
Select
Checks that a text stays on a set of valid topics and avoids invalid ones.
Etiquette
Saliency Check
Select
Checks if a generated summary covers topics present in a source document.
string
Factuality
LLM
Secrets Present
Select
Detects the secrets present in text by matching against common patterns for API keys and other sensitive information.
string
code
+2 more
Rule
Sensitive Topic
Select
A Guardrails AI validator that detects sensitive topics in text.
string
Etiquette
ML
Shield Gemma
Select
A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.
string
Etiquette
ML
Similar To Document
Select
Checks if some generated text is similar to a provided document.
string
Factuality
ML
Similar To Previous Values
Select
Checks if a value is similar to a list of previously known correct values.
string
integer
+1 more
ML
Sky Validator
Select
Validates that the input string does not contain negative statements about Sky Electric.
Brand risk
Toxic Language
Select
Identifies and flags toxic language in text to ensure communications remain professional and appropriate.
string
Etiquette
ML
Toxic Language LLM
Select
Detects toxic language in LLM-generated text using an LLM as the detection backbone. Evaluates text across seven toxicity categories: toxicity, severe toxicity, obscene, threat, insult, identity attack, and sexual explicit content.
string
Etiquette
LLM
Two Words
Select
Passes when value is *exactly* two words.
string
Formatting
Unusual Prompt
Select
A Guardrails AI input validator that validates a prompt for unusualness and trickery.
string
Etiquette
+1 more
LLM
Uppercase
Select
Passes when totally uppercase.
string
Formatting
Valid Address
Select
Verifies an LLM-generated address using Google Maps' Address Validation API.
string
Factuality
+1 more
Valid Choices
Select
Checks if a given string is a valid choice from a list of choices.
string
Formatting
Valid HTML
Select
Guardrails validator that checks for HTML parseability.
string
Formatting
Valid JSON
Select
Ensure content is parseable as valid JSON.
string
object
+3 more
Valid Length
Select
Ensures the length of a string or list falls between a minimum and maximum.
string
Formatting
Valid OpenAPI Specification
Select
Ensures that a generated output is a valid OpenAPI Specification.
string
object
+2 more
Valid Range
Select
Assess whether a generated number is between a maximum and minimum value.
integer
float
+1 more
Valid SQL
Select
Validates whether the given SQL code is syntactically correct using. Optionally accepts a database schema to validate against using SQLAlchemy.
sql
Formatting
+1 more
Valid URL
Select
Validates that text is a syntactically-valid URL.
string
Formatting
Web Sanitization
Select
Scans LLM outputs for strings that could cause browser script execution downstream.
string
Code Exploits
Wiki Provenance
Select
A Guardrails AI validator that detects and removes hallucinated text based off Wikipedia.
string
Factuality
0 Validators selected
Generate Code