Skip to main content

Detects toxic language in LLM-generated text using an LLM as the detection backbone. Evaluates text across seven toxicity categories: toxicity, severe toxicity, obscene, threat, insult, identity attack, and sexual explicit content.

Project description

guardrails-ai-toxic-language-llm

Detects toxic language in LLM-generated text using an LLM as the detection backbone. Evaluates text across seven toxicity categories: toxicity, severe toxicity, obscene, threat, insult, identity attack, and sexual explicit content.

Installation

pip install guardrails-ai-toxic-language-llm

Usage

from guardrails import Guard
from guardrails_ai.toxic_language_llm import ToxicLanguageLLM

guard = Guard().use(ToxicLanguageLLM)

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_toxic_language_llm-0.2.1a1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file guardrails_ai_toxic_language_llm-0.2.1a1.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_toxic_language_llm-0.2.1a1.tar.gz
Algorithm Hash digest
SHA256 f5abe9a7a88827d549840440b6224b3fce189bc4c6ed5d1c4080c4d16d627f8f
MD5 3725792c6a2da79744b668ecc6b02eb0
BLAKE2b-256 326a3811312aca75f45207dd33a317fcf4da2f1f6d496e2dec9e74abb65af1ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_toxic_language_llm-0.2.1a1.tar.gz:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guardrails_ai_toxic_language_llm-0.2.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_toxic_language_llm-0.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb8096cab8d6abc1ebcf221de283d4d04bf3931c626410ed011a1ae4b905d95f
MD5 cf0ef6488208716bf54792338132b1a9
BLAKE2b-256 f7d4754937f710d273db2e2af202cc68e0f735f5883d8e31979f5fd46ff6ec0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_toxic_language_llm-0.2.1a1-py3-none-any.whl:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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