Overview
flexorch-audit is an open source library for PII detection, text masking, and document quality scoring. It runs entirely locally — no API calls, no account required.
Python
pip install flexorch-auditJavaScript / TypeScript
npm install @flexorch/auditFeatures
- PII detection — 46 types across TR, EU, and US jurisdictions
- Text masking — 4 strategies: redact, replace, token, hash
- Quality metrics — grade (A–D), score, noise ratio, language detection
- Compliance summary — KVKK / GDPR risk categories
- LLM preparation —
redact_for_llm()one-liner, token estimation - LangChain & LlamaIndex — drop-in loaders with quality filtering
- Zero dependencies — pure Python / pure JavaScript, no heavy ML models
Quick example
Relationship to FlexOrch platform
flexorch-audit contains the core detection logic used by the FlexOrch platform. The platform adds:
- Structured extraction for 9 document types
- Managed pipeline (async jobs, job history)
- Dataset building and export
- Cloud connectors (S3, GCS, Azure)
- Compliance reports and audit trail
- Team management
flexorch-audit if you want detection in your own pipeline. Use the FlexOrch platform if you want the full managed workflow.