Hub Validators
Browse and install validators from the Guardrails Hub
β
Hub Token configured. You have access to all validators.
Change token β
How to install: Click β¬ Install on any validator. It will be installed into the Guardrails API container.
After installing, click π Restart API to make it available, then add it to a Guard using its ID.
Content Safety
Toxic Language
hub://guardrails/toxic_languageDetects toxic, offensive, or harmful language in text output.
Profanity Free
hub://guardrails/profanity_freeEnsures text is free from profanity and vulgar language.
NSFW Text
hub://guardrails/nsfw_textDetects not-safe-for-work content in text responses.
Gibberish
hub://guardrails/gibberishDetects nonsensical or gibberish text in model outputs.
Unusual Prompt
hub://guardrails/unusual_promptFlags prompts that are unusually structured or potentially adversarial.
Bias Check
hub://guardrails/bias_checkChecks for various forms of bias (gender, race, political) in text.
Hate Speech
hub://guardrails/hate_speechIdentifies hate speech targeting individuals or groups.
Security
Prompt Injection
hub://guardrails/detect_prompt_injectionDetects prompt injection attempts in user inputs.
SQL Injection
hub://guardrails/sql_injectionDetects potential SQL injection strings in text.
Secrets Present
hub://guardrails/secrets_presentDetects API keys, passwords, tokens, or other secrets in output.
LLM Critique
hub://guardrails/llm_critiqueUses a second LLM call to critique and validate the first response.
Privacy
Detect PII
hub://guardrails/detect_piiDetects personally identifiable information (names, emails, SSNs, etc).
Anonymize PII
hub://guardrails/anonymize_piiDetects and anonymizes PII by replacing with placeholders.
Sensitive Topics
hub://guardrails/sensitive_topicsFlags mentions of pre-configured sensitive topics.
Format
Valid JSON
hub://guardrails/valid_jsonEnsures the output is valid, parseable JSON.
Valid Python
hub://guardrails/valid_pythonEnsures the output is syntactically valid Python code.
Valid SQL
hub://guardrails/valid_sqlEnsures the output is a valid SQL statement.
Regex Match
hub://guardrails/regex_matchValidates that text matches a user-specified regular expression.
Valid Length
hub://guardrails/valid_lengthEnsures text stays within minimum and maximum character limits.
Ends With
hub://guardrails/ends_withValidates that text ends with a specific string.
One Line
hub://guardrails/one_lineEnsures the response is a single line with no newlines.
Valid Choices
hub://guardrails/valid_choicesEnsures output is one of a pre-defined set of allowed values.
Valid Range
hub://guardrails/valid_rangeEnsures numeric output falls within a specified min/max range.
Valid OpenAPI
hub://guardrails/valid_openapiValidates that the output is a valid OpenAPI specification.
Quality
QA Relevance
hub://guardrails/qa_relevance_without_reference_answerValidates that an answer is relevant to the question asked.
Sycophancy Check
hub://guardrails/sycophancy_checkDetects sycophantic or excessively agreeable AI responses.
On Topic
hub://guardrails/on_topicEnsures the response stays on the expected topic or domain.
Reading Time
hub://guardrails/reading_timeValidates that text falls within an expected reading time window.
Similar to Document
hub://guardrails/similar_to_documentChecks that response is semantically similar to a reference document.
Response Evaluator
hub://guardrails/response_evaluatorUses an LLM to evaluate response quality against custom criteria.
Business
Competitor Check
hub://guardrails/competitor_checkFlags if a competitor brand is mentioned in the response.
Restrict to Topic
hub://guardrails/restrict_to_topicLimits responses to a specific business domain or topic area.
Translation Quality
hub://guardrails/translation_qualityValidates the quality of translated text using back-translation.
URL Reachability
hub://guardrails/url_reachabilityChecks that URLs in the response are valid and reachable.