guardrails-ai Monorepo for updated guardrails-ai open source libraries. Contents sdk A thin REST client for the guardrails-api. types Core types necessary to define, persist, and execute a Guard.
-
guardrails ★ PINNED
Adding guardrails to large language models.
Python ★ 7.0k 13h agoExplain → -
guardrails-js ★ PINNED
A Javascript wrapper for guardrails-ai
TypeScript ★ 24 11d agoExplain → -
guardrails_pii
No description.
Python ★ 21 11d agoExplain → -
guardrails-api
FastAPI server for hosting Guardrails AI in your own environment.
Python ★ 17 2d agoExplain → -
detect_pii
Guardrails AI: PII Filter - Validates that any text does not contain any PII
Python ★ 16 11d agoExplain → -
validator-template
A test validator repo that includes just the regex validator
Python ★ 15 3mo agoExplain → -
guardrails-lite-server
A bare minimum deployment of guardrails as a service.
Dockerfile ★ 12 11d agoExplain → -
unusual_prompt
A Guardrails AI input validator that detects if the user is trying to jailbreak an LLM using unusual prompting techniques that involve jailbreaking and tricking the LLM
Python ★ 7 2mo agoExplain → -
detect_prompt_injection
A Guardrials Hub validator used to detect if prompt injection is present
Python ★ 7 11d agoExplain → -
provenance_llm
Guardrails AI: Provenance LLM - Validates that the LLM-generated text is supported by the provided contexts.
Python ★ 6 11d agoExplain → -
detect_jailbreak
Prototype Jailbreak Detection Guard
Python ★ 5 11d agoExplain → -
guardrails-internal ⑂ ▣
Adding guardrails to large language models.
Python ★ 4 1mo agoExplain → -
shieldgemma-2b
No description.
Python ★ 4 11d agoExplain → -
profanity_free
Guardrails AI: Profanity free - Validates that a translated text does not contain profanity language.
Python ★ 4 11d agoExplain → -
llamaguard-7b
No description.
Python ★ 3 11d agoExplain → -
toxic_language
Guardrails AI: Toxic language - Validates that the generated text is toxic
Jupyter Notebook ★ 3 1mo agoExplain → -
nsfw_text
A Guardrails AI validator that detects inappropriate/ Not Safe For Work (NSFW) text during validation
Python ★ 2 11d agoExplain → -
guardrails-api-client
OpenAPI Specifications and scripts for generating SDKs for the various Guardrails services
JavaScript ★ 2 11d agoExplain → -
ban_list
A Guardrails Validator that allows you to ban certain keywords using fuzzy matching
Python ★ 2 11d agoExplain → -
provenance_embeddings
Guardrails AI: Provenance Embeddings - Validates that LLM-generated text matches some source text based on distance in embedding space
Python ★ 2 11d agoExplain → -
restricttotopic ⑂
Validator for GuardrailsHub to check if a text is related with a topic.
Python ★ 2 11d agoExplain → -
COMET ⑂
A Neural Framework for MT Evaluation
Python ★ 2 11d agoExplain → -
similar_to_document
Guardrails AI: Similar to Document - Validates that a value is similar to the document
Python ★ 2 11d agoExplain → -
qa_relevance_llm_eval
Guardrails AI: QA Relevance LLM eval - Validates that an answer is relevant to the question asked by asking the LLM to self evaluate
Python ★ 2 11d agoExplain → -
lowercase
Guardrails AI: Lower case validator - Validates that a value is lower case
Python ★ 2 11d agoExplain → -
redundant_sentences
Guardrails AI: Redundant sentences - Removes redundant sentences from a string
Python ★ 2 11d agoExplain → -
regex_match
No description.
Python ★ 2 11d agoExplain → -
valid_sql
Guardrails AI: Valid SQL - Validates that there are no SQL syntactic bugs in the generated code.
Python ★ 2 1y agoExplain → -
exclude_sql_predicates
Guardrails AI: Excludes SQL predicates - Validates that the SQL query does not contain certain predicates
Python ★ 2 11d agoExplain → -
guardrails-prov-val ⑂
Adding guardrails to large language models.
★ 2 11d agoExplain → -
lazydocs ⑂
📖 Generate markdown API documentation from Google-style Python docstring. The lazy alternative to Sphinx.
★ 2 11d agoExplain → -
gibberish_text
A Guardrails AI validator that checks whether an LLM-generated response contains gibberish
Python ★ 1 11d agoExplain → -
sainatha_prompt_injection_detector
No description.
Python ★ 1 11d agoExplain → -
valid_json
Guardrails AI: Valid JSON - Validates that a value is parseable as valid JSON.
Python ★ 1 1y agoExplain → -
llm_critic
A Guardrails AI validator that validates LLM responses by grading + evaluating them against a given set of criteria / metrics
Python ★ 1 11d agoExplain → -
saliency_check
Guardrails AI: Saliency check - Checks that the summary covers the list of topics present in the document
Python ★ 1 11d agoExplain → -
response_evaluator
A Guardrails AI validator that validates LLM responses by re-prompting the LLM to self-evaluate
Python ★ 1 11d agoExplain → -
secrets_present
Guardrails AI: Detect Secrets - Validates whether the generated code snippet contains any secrets.
Python ★ 1 11d agoExplain → -
competitor_check
Guardrails AI: Competitor Check - Validates that LLM-generated text is not naming any competitors from a given list
Jupyter Notebook ★ 1 11d agoExplain → -
mlcube-rag-retrieval-guardrails ⑂
A Guardrail Validator for RAG retrieved context Usefulness and Relevance
Python ★ 1 11d agoExplain → -
jsonformer ⑂
A Bulletproof Way to Generate Structured JSON from Language Models
Jupyter Notebook ★ 1 11d agoExplain → -
bias_check
No description.
Python ★ 1 11d agoExplain → -
sensitive_topics
No description.
Python ★ 1 11d agoExplain → -
valid_choice
Guardrails AI: Valid choices - validates that a value is within the acceptable choices
Python ★ 1 1y agoExplain → -
valid_url
Guardrails AI: Valid url - Validates that a value is a valid URL
Python ★ 1 1y agoExplain → -
valid_range
Guardrails AI: Valid range - validates that a value is within a range
Python ★ 1 1y agoExplain → -
valid_address
A Guardrails AI validator that validates whether a given address is valid
Python ★ 1 1y agoExplain → -
uppercase
Guardrails AI: Upper case - Validates that a value is upper case
Python ★ 1 1y agoExplain → -
ends_with
Guardrails AI: Ends with validator - Validates that a list or a string ends with a given value
Python ★ 1 11d agoExplain → -
one_line
Guardrails AI: One Line validator - Validates that a value is a single line, based on whether or not the output has a newline character
Python ★ 1 11d agoExplain → -
reading_time
Guardrails AI: Reading time validator - Validates that the a string can be read in less than a certain amount of time.
Python ★ 1 11d agoExplain → -
two_words
Guardrails AI: Two words validator - Validates that a value is two words
Python ★ 1 1y agoExplain → -
endpoint_is_reachable
Guardrails AI: Endpoint is Reachable - Validates that a value is a reachable URL
Python ★ 1 11d agoExplain → -
relevancy_evaluator
No description.
Python ★ 1 11d agoExplain → -
arize-js
No description.
JavaScript ★ 1 11d agoExplain → -
extracted_summary_sentences_match
Guardrails AI: Extracted Summary Sentences Match - Validates that the extracted summary sentences match the original text by performing a cosine similarity in the embedding space
Python ★ 1 11d agoExplain → -
mentions_drugs
Validate that the generated text does not contain a drug name
Python ★ 1 11d agoExplain → -
valid_length
Guardrails AI: Valid length - Validates that the length of value is within the expected range
Python ★ 1 1y agoExplain → -
french_toxic_language
No description.
Python ★ 0 11d agoExplain → -
gliner_pii
No description.
Python ★ 0 11d agoExplain → -
interfaces
Shared interfaces defined in JSON Schema.
JavaScript ★ 0 11d agoExplain → -
contains_string
No description.
Python ★ 0 11d agoExplain → -
jailbreak
No description.
Python ★ 0 11d agoExplain → -
hub-types
Data structures used in the Guardrails Hub
JavaScript ★ 0 11d agoExplain → -
guardrails-ai
Monorepo for updated guardrails-ai open source libraries.
Python ★ 0 11d agoExplain → -
snowglobe-skills
No description.
Python ★ 0 22d agoExplain → -
detect_system_prompt_leakage
A validator that checks for system prompt leakage in LLM output.
Python ★ 0 11d agoExplain → -
guardrails-lite-client
Client side example using Guardrails AI in a Dockerized application
Python ★ 0 11d agoExplain → -
wiki_provenance
A Guardrails AI validator that detects hallucinations using Wikipedia as the source of truth
Python ★ 0 3mo agoExplain → -
politeness_check
No description.
Python ★ 0 11d agoExplain → -
responsiveness_check
A validator which ensures that a generated output answers the prompt given.
Python ★ 0 11d agoExplain → -
snowglobe-telemetry-openinference
Telemetry instrumentation for the snowglobe client using OpenInference semantics.
Python ★ 0 3d agoExplain → -
toxic_language_llm
Uses an LLM to determine whether text is toxic.
Python ★ 0 3mo agoExplain → -
valid_html
No description.
Python ★ 0 8mo agoExplain → -
qa-prompt-relevance
No description.
Python ★ 0 11d agoExplain → -
bert_toxic
No description.
Python ★ 0 11d agoExplain → -
high_quality_translation_validator ⑂
Fork of BrainLogic AI's validator
Python ★ 0 11d agoExplain → -
financial_tone ⑂
No description.
Python ★ 0 11d agoExplain → -
web_sanitization
Scans LLM outputs for code, code fragments, and keys
Python ★ 0 1y agoExplain → -
quotes_price
Check if the generated text contains a price quote in the given currency
Python ★ 0 11d agoExplain → -
sky_validator
No description.
Python ★ 0 11d agoExplain → -
internal_domains
No description.
Python ★ 0 11d agoExplain → -
continuous_integration_and_deployment_aws_template
No description.
HCL ★ 0 11d agoExplain → -
cucumber_expression_match
No description.
Python ★ 0 11d agoExplain → -
rag-llm-prompt-evaluator-guard ⑂
No description.
★ 0 11d agoExplain → -
reading_level
Parses text to find its readability as a US grade level number (0-12)
Python ★ 0 11d agoExplain → -
valid_open_api_spec
No description.
Python ★ 0 1y agoExplain → -
has_url
A validator that checks if a generated output includes a url.
Python ★ 0 11d agoExplain → -
similar_to_previous_values
No description.
Python ★ 0 11d agoExplain → -
logic_check
No description.
Python ★ 0 11d agoExplain → -
persona_consistency
No description.
Python ★ 0 11d agoExplain → -
guarded-summary
A url summarizer, made safe with Guardrails
Python ★ 0 11d agoExplain → -
guardrails-js-example
No description.
JavaScript ★ 0 11d agoExplain → -
sql_column_presence_validator ⑂
SQL validator
Python ★ 0 2y agoExplain → -
phi-validator ⑂
Check the presence of PHI in a given text
★ 0 11d agoExplain → -
valid_python_validator ⑂
Valid Python Guardrails AI validator - Validates that there are no Python syntactic bugs in the generated code.
Python ★ 0 2y agoExplain →
No repos match these filters.