Prompt Library Privacy Screener
Model for a PII screen (using Ollama) for open sourcing prompt libraries safely
About This Project
Prompt-Library-Privacy-Screener is a Python project that prepares a collection of prompts for public release by removing personally identifiable information and organizing the remaining prompts into categories. It runs entirely on a local machine using Ollama with the Llama 3.2 model, so prompt content is not sent to external services during processing.
The filtering stage uses user-defined PII text and keyword lists to flag prompts for removal, implemented with straightforward scripting for direct control. The categorization stage either accepts a user-supplied list of categories or asks the local LLM to generate one, then assigns each non-flagged prompt to an appropriate category. Flagged prompts are excluded from the final cleaned output.
The project is useful for developers and researchers who maintain personal or team prompt collections and want to share them publicly without exposing names, identifiers, or other sensitive details. The README also outlines possible extensions, including LLM-based rewriting of personalized prompts into general forms, more advanced PII detection beyond keyword matching, and automated category generation.