Rizzo-AI-Academy/rizzo-pii

Local-first privacy guard: anonymize your documents before sharing with LLMs.

What it solves

Many professionals, such as lawyers and accountants, rely on powerful AI models (like ChatGPT or Claude) to process sensitive documents. However, sending these documents to the cloud risks leaking personal data, which can violate GDPR and other privacy regulations. This project provides a way to use these powerful AI tools without ever exposing real personal information to the cloud provider.

How it works

The tool uses a lightweight, local AI model that runs entirely on your computer's CPU. It scans your documents to identify 22 categories of personal information—such as names, tax codes, and bank details—and replaces them with secure placeholders (e.g., [FULLNAME_1]). It saves a local, encrypted-style dictionary that maps these placeholders back to the original data. You then send the anonymized text to the cloud AI. Once you receive the AI's response, the tool uses the local dictionary to swap the placeholders back with the original information, restoring the document's context.

Who it’s for

It is designed for professionals in fields like law, finance, and healthcare who are bound by strict data privacy laws (like the GDPR) but want to leverage the capabilities of frontier AI models for drafting, summarizing, or analyzing sensitive documents.

Highlights

  • 100% Local: All processing happens on your device; no data, API keys, or telemetry ever leave your machine.
  • Italian-Legal Focus: Specifically trained to recognize Italian identifiers like codice fiscale, partita IVA, and cadastral data that generic models often miss.
  • Reversible: Unlike simple redaction, it allows you to restore the original data into the AI's output, keeping your work useful and accurate.
  • Lightweight: The model is small (≈0.3B parameters) and requires less than 1 GB of RAM, making it performant on standard laptops without needing a GPU.
  • High Accuracy: Achieves a 0.989 micro-F1 score, with perfect detection for critical Italian legal identifiers.

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project