Skip to main content

A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.

Project description

guardrails-ai-shieldgemma-2b

A Gemma based validator for moderating user prompts to guard against harmful content by specifying a policy.

Installation

pip install guardrails-ai-shieldgemma-2b

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

python -m guardrails_ai.shieldgemma_2b.post_install

Usage

from guardrails import Guard
from guardrails_ai.shieldgemma_2b import ShieldGemma2B

guard = Guard().use(ShieldGemma2B)

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_shieldgemma_2b-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4704b2aaceca90a0e52c504751db98e806f5fbd0cf2a9a53b891a915a1e6352f
MD5 2c650b8d9919c999dbcd59fd9facb0ee
BLAKE2b-256 b21535494c645d96860da031cdb08bae5c33f7020b8aaea68f484676570652ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_shieldgemma_2b-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7938865b5196c346a2de3bf8151844cd4978dfe4ef057964bf18ae288f9cca19
MD5 9d293c5e230b783ebf81c929d8aed50e
BLAKE2b-256 f96a818bc1b3549b1a565ff7eb7172526b5b06645a5c7f26a5315d90678052e3

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