Skip to main content

A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.

Project description

guardrails-ai-llamaguard-7b

A llama based validator which checks whether a given prompt is safe/unsafe by specifying a set of policies and lists the violating policies when applicable.

Installation

pip install guardrails-ai-llamaguard-7b

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

python -m guardrails_ai.llamaguard_7b.post_install

Usage

from guardrails import Guard
from guardrails_ai.llamaguard_7b import LlamaGuard7B

guard = Guard().use(LlamaGuard7B)

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_llamaguard_7b-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27b1478f2773b49f1ba0045a8444de671d0be8dc9e85b5bb89aacce172a6b983
MD5 9b93e11d8894071022a06930015c6e10
BLAKE2b-256 515e94cf18aad45c6538246fe07d19b17b80829498e64d105fc9c511764ecfca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_llamaguard_7b-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac874c381c54709e174df2bf6cbd9083ee87562bc0150e997bc495736459bd35
MD5 a437c87fbf288de178685d2722d3dcde
BLAKE2b-256 cb15d2cc390b7b06a25e0b48ee19a5c66bf31006f9fbab28f3225254fe3bbe7a

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