QWED Protocol: Deterministic Verification for Large Language Models
Abstract
QWED v2.2.0 introduces automatic PII (Personally Identifiable Information) masking - protecting sensitive data before it reaches LLM providers. π What's New PII Masking (Enterprise Privacy Feature) Automatically detect and mask 9 types of PII before sending to LLM providers: β
Email addresses β
Credit card numbers β
Phone numbers β
US SSN β
IBAN codes β
IP addresses β
Person names β
Locations β
Medical licenses Your data stays private. The LLM never sees the actual sensitive information. Perfect for: Healthcare - HIPAA compliance Finance - PCI-DSS compliance Enterprise - GDPR compliance Legal - Attorney-client privilege Any privacy-sensitive application ### π Quick Start Installation # Standard installation pip install qwed # With PII masking support pip install 'qwed[pii]' python -m spacy download en_core_web_lg Usage Python API: from qwed_sdk import QWEDLocal client = QWEDLocal(provider="openai", mask_pii=True) result = client.verify("My email is john@example.com") # LLM sees: "My email is " CLI: qwed verify "Email: user@example.com" --mask-pii qwed pii "Test: 123-45-6789" # Test detection β¨ Key Features π Privacy-First Architecture 100% local PII detection (powered by Microsoft Presidio) No data sent to QWED servers One-way masking (non-reversible) π Transparent Auditing All verification results include PII metadata See exactly what was masked and why Full compliance audit trail β‘ Performance ~100-200ms latency impact 95%+ detection accuracy English language support (v2.2.0) π― Flexible Configuration Opt-in design (mask_pii=False by default) Customize which PII types to detect Works with ALL LLM providers π Documentation New guides added: PII Masking Guide - Complete documentation Enterprise Use Cases - HIPAA, PCI-DSS, GDPR examples Installation Guide - Step-by-step setup Updated: README with PII section Unit tests for PII functionality CLI reference π Breaking Changes None! This release is fully backward compatible. PII masking is opt-in (disabled by default) Optional dependency (doesn't affect existing installations) All existing code works without changes π Bug Fixes Fixed CI test suite to gracefully skip PII tests when dependencies not installed Improved error messages for missing PII dependencies π― What's Next v2.3.0 (Q1 2026) - Planned features: Multi-language PII support Cost tracking & analytics Streaming verification Enhanced confidence scores See full ROADMAP π¦ Links PyPI: https://pypi.org/project/qwed/2.2.0/ Docs: https://docs.qwedai.com/ PII Guide: docs/PII_MASKING.md Full Changelog: RELEASE_NOTES_v2.2.0.md π Acknowledgments Special thanks to: Microsoft Presidio team for excellent PII detection spaCy for NLP infrastructure Community feedback on privacy features Install now: pip install 'qwed[pii]' Questions? Open an issue or reach out on Twitter
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 4 January 2026