Autonomous Compliance Auditor
Corrective-RAG service that audits responses for legal & privacy compliance.
A LangGraph-orchestrated Corrective-RAG (CRAG) pipeline that audits knowledge-base and bot responses for adherence to legal, GDPR/HIPAA privacy, and company policy. It screens input for prompt-injection and jailbreaks, redacts PII before anything reaches the LLM, grades retrieved documents, and falls back to web search when local context is insufficient.
- Fail-safe ordering: input guardrails → PII redaction happen before text reaches embeddings or the LLM.
- Two-stage input screening — cheap regex first, LLM classifier second.
- CRAG correction: documents are graded; weak local context triggers a Tavily web search before generation.
- Grounded generation as a structured ComplianceAudit, re-checked for grounding/toxicity with one bounded self-correction.
