PACT - Privacy-Aware Chat Tool
PACT sanitizes your prompts before they reach a cloud LLM. Sensitive data never leaves your device in plain text.
What's included
- 5 configurable redaction modules: Identity & PII, Location & Geo, Demographics, Health & Medical, Financial
- Groq-powered synthesis (llama-3.1-8b-instant) merges redacted candidates into a coherent prompt
- AU-Probe uncertainty gate blocks over-redacted prompts from reaching GPT
- OpenAI GPT-4o-mini for final responses
- PDF/image attachment support with text extraction
- Adjustable AU threshold (0.2 / 0.5 / 0.8)
Deployment
- Frontend: GitHub Pages (this repo root)
- Backend: Railway (https://pact-production-ca9b.up.railway.app)
Environment variables required on Railway
GROQ_API_KEY- free at console.groq.comGPT_API_KEY(optional - users can supply their own key in the UI)