⚖️ LegalTechOn Time📋 Fixed Price

LegalTech Document Review AI — UK Magic Circle Law Firm

UK6 min readUpdated June 2025
Region
UK
Contract
Fixed Price
Tech Stack
10 Technologies
IP
100% transferred

Project Overview

A Magic Circle law firm conducting a major M&A due diligence transaction needed to review 840,000 documents (f...

Technology Stack

PythonOllama (Llama 3.1 70B4-bit)LangChainChromascikit-learnPyMuPDFFastAPIReacton-premises A100 GPU cluster

Compliance & Standards

Legal Professional Privilege (LPP)UK GDPR (third-party corporate data)SRA Code of ConductCyber Essentialson-premises (no external data transfer)
Step 01

The Challenge

A Magic Circle law firm conducting a major M&A due diligence transaction needed to review 840,000 documents (financial records, contracts, regulatory filings) in a 6-week data room review period. Traditional review at the firm's standard rate would require 28,000 fee earner hours — commercially and practically impossible. Legal Professional Privilege architecture, UK GDPR data processing for third-party company data, and SRA professional obligations for AI-assisted review were the constraints. Budget: £85,000 (technology component only — fee earner review of AI outputs billed separately).

Step 02

Our Approach

LPP constraint

  • 840,000 documents cannot be sent to any external AI API.
  • ClickMasters deployed on-premises: Llama 3.1 70B (4-bit quantised, running on firm's A100 GPU cluster), LangChain RAG pipeline, Chroma vector store (local).

Document ingestion pipeline

  • PDF extraction (PyMuPDF), chunking (512 tokens), embedding (local Nomic Embed Text model), and storage in Chroma.
  • Zero document data leaves the firm's network.

Classification taxonomy

  • 12 document categories (Material Contract, Regulatory Correspondence, Financial Statement, IP Assignment, Employment Contract, Dispute/Litigation, Real Property, Permits, Insurance, Corporate Governance, Tax, Other).
  • ML classifier (scikit-learn, fine-tuned on 2,000 manually-labelled due diligence documents): first-pass classification at ingestion.

Confidence threshold

documents below 80% confidence flagged for senior associate review.

Privilege screening

dedicated LLM query per document checking for indicators of legal professional privilege (law firm names, "privileged and confidential" headers, legal advice language).

Privilege candidates

flagged for privilege review before any further processing.

SRA professional obligation

privilege screening is the first step — privileged documents are quarantined and reviewed manually before inclusion in data room analysis.

Associate review interface

  • classified documents presented with AI summary, classification confidence, and key extracted terms.
  • One-click accept/reclassify/escalate.

SRA audit trail

  • every document, every classification decision, every reclassification, every reviewer — immutable log.
  • Partner sign-off dashboard: review progress, classification distribution, and risk concentration heatmap per deal category.
Step 03

The Results

Deployed at 3 weeks (compressed timeline for transaction), £78,000 — under budget.

Documents classified: 840,000 in 96 hours.

First-pass classification accuracy (validated against 2,000 sample): 94.7%.

Review time for associate team: 6 weeks × 8 associates (384 fee earner hours) vs estimated 28,000 hours without AI (98.6% reduction).

LPP: zero privileged documents included in data room output without manual review.

SRA audit trail: commended in subsequent Law Society AI guidance review.

Client Testimonial
384 fee earner hours versus 28,000. That calculation is why Magic Circle firms are investing in AI. The LPP architecture — on-premises, no external API calls, privilege screening first — was non-negotiable and ClickMasters understood that from day one. The Law Society is using our audit trail approach in their AI guidance." — Managing Partner, Magic Circle Law Firm (name withheld)
ClickMasters Case Study Team
Reviewed by James Whitmore, CTO

Project Details

Sector
LegalTech
Country
UK
Status
On Time
Contract
Fixed Price
Tech Stack
10 Technologies
Reading Time
6 min
IP Ownership
100% transferred
Last Updated
June 2025
Written By
ClickMasters Case Study Team
Reviewed By
James Whitmore, CTO

Related Case Studies

View All

Ready to Transform Your Business?

Let's discuss how our technical expertise can help you achieve remarkable results.