Back to Case Studies

Build vs Buy: Testing AI Contract Review Options on Real Supplier Contracts

·
Advanced Manufacturing , USA

Executive Summary

The procurement team had two polished vendor demos and an internal engineering team saying "we can build this ourselves". Both sides sounded convincing, and the wrong choice would mean either a multi-year platform contract that did not fit, or a build project that never reached production. GenAI Protos ran a focused R&D sprint that tested both paths on the client's own supplier contracts, using the same test set and the same scoring. Leadership got a decision based on evidence, not on the best demo.

01Problem Statement

The client reviews thousands of supplier contracts across regions, with legal and procurement teams checking the same clauses again and again: liability caps, payment terms, termination rights and data clauses. Before committing budget, leadership needed answers to questions that demos do not answer:

  • How accurate is each option on our contracts, including scanned files and non-standard templates?
  • Does it find the clauses that matter most, or only the easy ones?
  • Can it connect to our contract repository and approval workflow?
  • Where does contract data go, and can we keep it in our chosen region?
  • What is the real cost per contract at our expected volume, over three years?
  • How hard is it to switch later if the market or our needs change?

02Our Approach

We agreed the research questions, success criteria and budget with procurement, legal and IT before testing anything. Legal reviewers labelled a set of real, de-identified contracts, marking the clauses that carry the most risk. A separate holdout set was kept aside until the final check.

Three paths were tested under the same rules: two shortlisted commercial platforms through trial access, and a build prototype using open-weight and hosted models with document parsing and retrieval. Every option was scored on clause-level accuracy, missed high-risk clauses, handling of scanned and unusual layouts, response time, integration effort and data location.

We then built a three-year cost view for each path, including licences, usage, hosting, integration and the engineering time needed to run and improve a build. Findings were reviewed with the engineers who ran the tests, including where each option failed.

System Architecture & Flowclick to zoom
Architecture Diagram
Architecture Diagram

03Outcome

  • A side-by-side scorecard for both vendor platforms and the build prototype
  • Clause-level results, including missed high-risk clauses and failure examples
  • A three-year total cost of ownership view for each path
  • Integration and data-location findings for legal, IT and security review
  • A reusable labelled test set to re-check vendors at renewal or new releases
  • A clear recommendation with the conditions that would change it

04Tech Stack & Ecosystem

Key models, frameworks, and core infrastructure powering this solution.

Document Parsing

Docling for build-path parsing of contracts, including tables and section structure.

Model Access

LiteLLM for consistent access to hosted and open-weight models in the build prototype.

Self-Hosted Serving

vLLM for open-weight models, to test a private deployment option.

Labelling

Label Studio for legal reviewers to mark clauses and risk levels.

Data Privacy

Microsoft Presidio to de-identify contracts before testing.

Evaluation

Custom Python harness for clause-level scoring across all three options.

Tracing and Cost

Langfuse for tracing requests and tracking usage cost in the build path.

05Client Testimonials

“We were weighing two contract review platforms against an internal build, but the vendor demos could not tell us how either option would perform on our supplier contracts. GenAI Protos tested all three against the same legally reviewed documents and showed us the missed high-risk clauses, integration constraints, data-location implications, and three-year costs. That gave procurement, legal, and IT a common basis for the decision.”
AM
Head of Procurement
Advanced Manufacturing, USA

Ready to start?

Facing a build vs buy decision on AI? Talk to our engineers about a focused R&D sprint on your own data.

Frequently asked questions

Test both on the same labelled supplier contracts. Compare clause-level accuracy, missed high-risk clauses, response time, integration effort, data location and three-year cost.

A polished demo cannot establish that. Include scanned files and unusual templates in the test set, then measure which liability, termination, payment and data clauses each option misses.

Compare three-year total cost at your expected contract volume, including licences or usage fees, hosting, integration and the engineering time needed to maintain an internal build.

Trace where documents are stored and processed for each option, check whether the required region is supported, and review how it connects to your existing contract repository and approval workflow.

The assessment should record the failed criteria and recommend what to change or test next. The labelled contracts and scoring assets can be reused when a vendor or model improves.