Skip to main content

A Guardrails AI validator to check if the LLM-generated text contains a substring.

Project description

guardrails-ai-contains-string

A Guardrails AI validator to check if the LLM-generated text contains a substring.

Installation

pip install guardrails-ai-contains-string

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

python -m guardrails_ai.contains_string.post_install

Usage

from guardrails import Guard
from guardrails_ai.contains_string import ContainsString

guard = Guard().use(ContainsString)

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_contains_string-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2fd5e9507a79a5d2494c01f5be151e964ebe29eb01b5a4090ad53d06bb5e12e9
MD5 aadf1a8330a188e250c462e1c9d72e96
BLAKE2b-256 8174d49db3037e44e7c5cb0a8bc0f3b9824c82eea1e69b0aff67edd90009b3a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_contains_string-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4b7b3ea12f6228184597da17a1d36de229860669100401160583e4866a4ccf
MD5 0c520ccd83331aca57a268d8c9e4f73e
BLAKE2b-256 3d4ccc419b891889adf46dc3b7d2397b9f90d7412d75b550b5b5863e5a4603fd

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