Skip to main content

Detects system prompt leakage using fuzzy string matching (via `rapidfuzz`) to compare the LLM's response against a provided system prompt

Project description

guardrails-ai-detect-system-prompt-leakage

Detects system prompt leakage using fuzzy string matching (via rapidfuzz) to compare the LLM's response against a provided system prompt

Installation

pip install guardrails-ai-detect-system-prompt-leakage

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

python -m guardrails_ai.detect_system_prompt_leakage.post_install

Usage

from guardrails import Guard
from guardrails_ai.detect_system_prompt_leakage import DetectSystemPromptLeakage

guard = Guard().use(DetectSystemPromptLeakage)

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

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_detect_system_prompt_leakage-0.1.0.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_detect_system_prompt_leakage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82f3f5f16ff8ad74b158591f8818bdaeb1fdd0e2baf143cd8921d1fa4c02fc2a
MD5 878eccc83206640f07cd700acfce6cfd
BLAKE2b-256 b7099702d884a54e3e9a837c099fa099a6addeec3bac20d708d427c51ea2a7a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_detect_system_prompt_leakage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 240e8138b5ded2f66fe30379f26306f9e3ebde9f606085a4e3555e3b7b3602ee
MD5 a173fcc3c25b9459415c0948687f0af2
BLAKE2b-256 e1f2f527e91f1f39c9a6d5cf0db733b4ed404eb56432bb1e0f508c6bba8899f4

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