We built GPT-powered contract intelligence over 14 weeks, processing the entire 8.4M contract corpus and embedding AI throughout the product: (1) Contract understanding engine: multi-stage processing pipeline for contract analysis. Stage 1 — Document processing: OCR for scanned PDFs (35% of the contract corpus was scanned, not native PDF). Layout analysis: identifying contract structure (sections, clauses, schedules, exhibits) using document AI. Stage 2 — Clause extraction: GPT-4o fine-tuned on 12,000 annotated contracts (annotated by the company's legal advisors — identifying 85 clause types including: limitation of liability, indemnification, termination, assignment, change of control, confidentiality, non-compete, force majeure, governing law, dispute resolution, SLA commitments, payment terms, renewal terms, data protection, and insurance requirements). Fine-tuning achieved 96.8% accuracy on clause identification (exceeding the 95% target). Stage 3 — Key term extraction: for each identified clause, GPT extracts structured data — monetary values, dates, percentages, conditions, and party-specific obligations.
Example: from a limitation of liability clause, the system extracts: cap amount ($5M), cap type (aggregate), exclusions (IP infringement, confidentiality breach), and whether cap applies per-incident or aggregate. Stage 4 — Risk scoring: each contract receives a risk score based on: deviations from the company's standard positions (maintained as a configurable rule set per customer), unusual or missing clauses, unfavorable terms (unlimited liability, auto-renewal with no termination for convenience, exclusive remedies), and regulatory red flags (missing data protection clauses in contracts involving personal data processing). (2) Portfolio-level intelligence: contract intelligence aggregated across the customer's entire portfolio. Portfolio dashboard: real-time visibility into risk distribution across all contracts. Natural language querying: customers ask questions in plain English — "Show me all contracts with auto-renewal clauses expiring in the next 90 days", "Which contracts have unlimited liability?
", "Find all vendor contracts missing data processing addenda" — GPT translates to structured queries against the extracted contract data. Obligation tracking: payment obligations, milestone dates, renewal dates, and notice periods extracted from contracts and presented in a unified calendar — with automated alerts. Comparison analysis: GPT compares a new contract against the customer's standard terms, highlighting every deviation with risk assessment and suggested negotiation language. (3) Drafting assistance: GPT embedded in the contract creation workflow. Template intelligence: when creating a new contract, GPT suggests relevant clauses based on: contract type, counterparty jurisdiction, industry, and the customer's standard positions. Clause generation: GPT drafts clauses with configurable risk appetite — conservative (maximum protection for the customer), balanced, or aggressive (faster negotiation, more flexibility).
Negotiation assistance: when reviewing a counterparty's redlines, GPT analyses each proposed change, assesses risk, and suggests alternative language that addresses the counterparty's concern while protecting the customer's interests. (4) Scale architecture: processing 8.4M contracts required careful cost and performance engineering. Batch processing: the historical corpus processed over 4 weeks using parallelised processing pipelines (1,000+ concurrent document processing workers). Cost optimization: multi-model approach — simple clause detection using GPT-4o-mini (80% of processing volume), complex analysis (risk assessment, term extraction from ambiguous language) using GPT-4o. Embedding-based pre-filtering: before sending text to GPT, embeddings identify relevant sections — reducing token usage by 70% (the model analyses the relevant 3-4 pages of a 24-page contract, not the entire document). Total processing cost for 8.4M contracts: $340,000 (versus $2.1M estimated for naive full-document GPT-4o processing). Ongoing cost: approximately $28,000/month for processing 180,000 new contracts plus portfolio queries.
Caching: common queries cached — "contracts expiring in next 90 days" computed once per day, not per request. (5) SOC 2 compliance: GPT processing layer included in the company's SOC 2 Type II audit boundary. Access controls: contract data access respects the existing permission model — users only see GPT analysis for contracts they have permission to view. Audit logging: every GPT interaction logged (document processed, query executed, result returned, user, timestamp). Model governance: prompt templates version-controlled, model version pinned (updates tested in staging before production), and output quality monitored continuously. CCPA: consumer rights supported — personal information in contracts (names, addresses) can be identified and reported for DSAR compliance. (6) HIPAA: for healthcare customers, contracts containing PHI references processed with additional safeguards — encrypted processing, access restricted to authorized users, and BAA coverage for model hosting (Azure OpenAI with BAA).
(7) Accuracy monitoring: continuous evaluation against human-annotated test set (500 contracts, refreshed quarterly). Accuracy tracked by clause type — if any clause type drops below 93% accuracy, an alert triggers investigation and potential model retraining. Current production accuracy: 96.2% across all clause types (from 96.8% at launch — minor degradation tracked and within acceptable range).