← All case studies
LLM & AgentsComplianceExequt · 2026

komplyance.ai

PDPL compliance platform live with Saudi banks: LLM-as-judge gap analysis, document remediation and a LangGraph multi-agent assistant.

95%content fidelity on generated documents

Context

Saudi Arabia’s Personal Data Protection Law (PDPL), enforced by SDAIA, requires banks and finance companies to prove their policies and processes meet dozens of specific articles. Compliance teams were reviewing documents by hand against the regulation.

Challenge

Automate “is this compliant?”, a question with legal consequences, so that answers are grounded in the regulation, explainable to auditors, and deployable inside banks that cannot send data to public APIs.

My role

Led a team of 3 AI engineers. Owned the architecture, sprint planning, model selection, GPU sizing for on-prem clients and stakeholder communication from first prototype to production.

Architecture

How the system fits together

komplyance.ai architecture diagramGCP · Cloud Run · Terraform CI/CDCompliance officerweb app · chatClient documentsPDF · DOCX · XLSXAPI gatewayFastAPI microservicesVision OCRQwen-VL on vLLMMulti-agent assistantLangGraphPDPL knowledge basearticles · vector indexCompliance evaluatorDeepEval + LLM-judgeWeb search & toolstool callingModel routervLLM · OpenRouter · 5 OSSRemediation draftsPDPL-ready documentsLangfusetraces · evals · costGap reportSDAIA submissionuploadtextretrievegaps
User / outputExternal sourceServiceModel / AIData storeInfra / opsTelemetry / async

Simplified for public sharing; client-specific details are omitted.

Approach

Key engineering decisions

  1. 01

    Multi-format ingestion

    Excel, PDF and DOCX uploads go through a Qwen vision-LLM OCR pipeline served on vLLM, so scanned and table-heavy policies are parsed as reliably as clean text.

  2. 02

    Rubric-based evaluation engine

    “Compliant” is broken into accuracy, completeness and authenticity. Each is scored by DeepEval metrics plus custom LLM-as-judge prompts grounded in retrieved PDPL articles, producing an article-by-article gap report.

  3. 03

    Remediation & generation

    For each gap, a generation pipeline drafts PDPL-compliant replacement text in the client’s voice. Drafts reach 95% content fidelity and need only minor edits before SDAIA submission.

  4. 04

    Multi-agent assistant

    A LangGraph assistant combines the regulation knowledge base, web search and tool calls so compliance officers can ask follow-up questions in plain language.

  5. 05

    Cost-aware model routing

    Requests are routed across 5 open-source models via vLLM and OpenRouter, trading accuracy against cost per task. Everything is traced in Langfuse.