About the client
The client sells a SaaS compliance platform that automates policy analysis, regulatory tracking and licence workflows for organisations and legal professionals. Its core task is checking a customer's policy, clause by clause, against the laws that apply to that customer, then drafting remediation. The client engaged FiftyFive as a dedicated development partner to turn that from a slow, manual process into a fast, reliable system inside the product.
Compliance findings that are fast, repeatable and defensible
- Manual review did not scale. Clause-by-clause comparison and hand-written remediation grew with every document and fell behind regulatory change.
- 40 minutes per policy. A single run took about 40 minutes on CPU, which ruled out interactive checks in the product.
- A week to update the law. Rebuilding the legal corpus index took about a week, so regulatory updates reached customers late.
- Drift and variability. Mismatches between the vector index and metadata store broke provenance, and unstable retrieval meant one policy could produce different findings.
- Tenant bleed. One customer's applicable law set must never affect another's analysis.
- Findings in context. Suggestions had to appear at the exact place in the document, with evidence, rationale and confidence, and stay in sync through retries.
What FiftyFive built
An eight-person FiftyFive team delivered the backend architecture, AI pipeline, GPU deployment and multi-tenant design. The guiding decision was to build a deterministic compliance engine, not a conversational AI tool: the system decides what is non-compliant with repeatable logic, and a language model only drafts wording for findings that logic has already produced.
How the solution works
Staged ingestion and indexing
- Legal corpora and customer policies pass through a fixed sequence: ingestion, normalisation, chunking, embedding, indexing and validation.
- The validation stage checks that the vector index and metadata store agree before anything reaches production, which removed the mapping drift that had broken provenance.
- Corpus rebuilds fell from about a week to about three hours.
GPU-accelerated legal retrieval
- Embedding generation and vector similarity search run on AWS instances with NVIDIA L4 GPUs.
- A multi-tier vector index balances recall and precision across the legal corpus, so retrieval finds the relevant provisions without returning irrelevant ones.
- End-to-end policy-to-law validation fell from about 40 minutes to about 3.
Two-pass gap detection and drafting
- Pass A identifies compliance gaps with deterministic logic and produces the same findings for the same inputs.
- Pass B uses OpenAI models to draft remediation language, constrained to the findings from Pass A.
- Model variability can therefore change wording, but never what is flagged, and every draft ties back to a detected gap.
Auditable artifacts anchored in the document
- Every run produces a deterministic job artifact in a canonical JSON schema: issue, rationale, confidence, document spans and provenance.
- A document-anchoring layer maps each finding to its exact span, so the frontend shows suggestions, evidence and legal references in place.
- A custom synchronisation mechanism keeps backend artifacts and frontend document state consistent through asynchronous processing, partial results and retries.
Tenant isolation in the database
- Tenant allowlists are enforced in the database rather than in application code, and each tenant is evaluated only against its own applicable law set.
Technology stack
What the solution enabled
Business transformation
Faster policy-to-law validation
To rebuild the legal corpus, from about a week
Runs, with deterministic artifacts and database-enforced tenant scoping
About 13 times faster validation
Policy-to-law validation dropped from about 40 minutes on CPU to about 3 minutes on GPU, enabling near-real-time checks in the product.
Same-day legal updates
Rebuilding the legal corpus takes about three hours, from about a week.
Findings in place
Each finding is anchored to its exact location in the policy, with evidence, rationale, confidence and legal provenance.
Reproducible runs
Deterministic artifacts and database-enforced tenant scoping make each run inspectable after the fact.
FiftyFive Technologies rebuilt the compliance engine of a European LegalTech company's SaaS platform, which checks customer policies clause by clause against applicable law. FiftyFive moved embedding and vector search onto AWS instances with NVIDIA L4 GPUs, added a staged ingestion-to-validation pipeline, separated deterministic gap detection from bounded OpenAI drafting, and enforced tenant boundaries in the database. Policy-to-law validation fell from about 40 minutes to about 3, and legal corpus rebuilds from about a week to about three hours.
Technical questions
How do you make LLM-based compliance checks repeatable enough for audit?
FiftyFive Technologies split the work into two passes. Pass A finds compliance gaps with deterministic logic, so the same policy and law set always produce the same findings. Pass B uses OpenAI models only to draft remediation for those findings. Every run is stored as a canonical JSON artifact with issue, rationale, confidence, document spans and provenance.
How do you speed up retrieval-augmented generation over a large legal corpus?
In this platform, FiftyFive Technologies moved embedding generation and vector similarity search from CPU to AWS instances with NVIDIA L4 GPUs and introduced a multi-tier vector index tuned for recall and precision. End-to-end policy-to-law validation fell from about 40 minutes to about 3 minutes.