Skip to main content

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.

Metadata

Release files for guardrails-ai-detect-system-prompt-leakage 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for guardrails-ai-detect-system-prompt-leakage 0.1.0
File Size Uploaded
guardrails_ai_detect_system_prompt_leakage-0.1.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for guardrails-ai-detect-system-prompt-leakage 0.1.0
File Interpreter ABI Platform
guardrails_ai_detect_system_prompt_leakage-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / guardrails_ai_detect_system_prompt_leakage-0.1.0.tar.gz

Download URL guardrails_ai_detect_system_prompt_leakage-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
82f3f5f16ff8ad74b158591f8818bdaeb1fdd0e2baf143cd8921d1fa4c02fc2a
BLAKE2b-256 checksum
How to use checksums
b7099702d884a54e3e9a837c099fa099a6addeec3bac20d708d427c51ea2a7a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / guardrails_ai_detect_system_prompt_leakage-0.1.0-py3-none-any.whl

Download URL guardrails_ai_detect_system_prompt_leakage-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
240e8138b5ded2f66fe30379f26306f9e3ebde9f606085a4e3555e3b7b3602ee
BLAKE2b-256 checksum
How to use checksums
e1f2f527e91f1f39c9a6d5cf0db733b4ed404eb56432bb1e0f508c6bba8899f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page