QWED Protocol: Deterministic Verification for Large Language Models

Read full text
Authors: Rahul Dass
Cited by: 0

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