Skip to main content

Validates that the generated text does not contain any drug names

Project description

guardrails-ai-mentions-drugs

Validates that the generated text does not contain any drug names

Installation

pip install guardrails-ai-mentions-drugs

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

python -m guardrails_ai.mentions_drugs.post_install

Usage

from guardrails import Guard
from guardrails_ai.mentions_drugs import MentionsDrugs

guard = Guard().use(MentionsDrugs)

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_mentions_drugs-0.1.0.tar.gz (21.9 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_mentions_drugs-0.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_mentions_drugs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc4b1af81b3fdff0d569f9f0c17b7e0a315958c36118f11a13b64e3743b09db9
MD5 7af237d186846e62275fee2cd3570a48
BLAKE2b-256 cbda12525e920ad2f4337b6f23a1a265dc9233ca30020387c3b11d80a4e3d0c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_mentions_drugs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cec3fef9855a0d542f679c23705febab1082f2f585cd859249025a6aacc352b8
MD5 2891fbaefd885fe8e85bc57ed7092585
BLAKE2b-256 394a4a15e808e4d342ff08306490c0ab71af268f79d9e942f34c8969d5dd6ff3

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