Skip to main content

Validates that the output does not contain banned words, using fuzzy search.

Project description

guardrails-ai-ban-list

Validates that the output does not contain banned words, using fuzzy search.

Installation

pip install guardrails-ai-ban-list

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.ban_list.post_install

Usage

from guardrails import Guard
from guardrails_ai.ban_list import BanList

guard = Guard().use(BanList)

License

MIT — © Guardrails AI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardrails_ai_ban_list-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guardrails_ai_ban_list-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_ban_list-0.1.0.tar.gz.

File metadata

  • Download URL: guardrails_ai_ban_list-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for guardrails_ai_ban_list-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e547c24e69eb45bb2d483d8aa79b302568c2057d8b5c3f47b0a6aff20e67a2a6
MD5 475700d1228be4bd05959a6fb8712ab3
BLAKE2b-256 94498ab9d0d8cf475e0b501399971010d220e4b5caf7ed9945d885a94878f21d

See more details on using hashes here.

File details

Details for the file guardrails_ai_ban_list-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_ban_list-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c685527dc6f808d43bcc81e587b21e6ce20f4f855f248ec089959458c69b7bde
MD5 9aebba722745c6445894840cda04ce23
BLAKE2b-256 d306f7e79429d68159af2a9a2504bf09dcc024eabacb036845da63f67c43f295

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page