Vihaan Jain
← Work

How often LLMs misread government contracts

Organization
SalesPatriot (YC W25)
Role
Software engineering intern, via HUVTSP
When
Summer 2025
Tools
Python, LangChain, Pydantic, OpenAI API, Anthropic API, Figma

SalesPatriot helps defense suppliers find and bid on government contracts. Thousands of new requests for quote (RFQs) go up on DIBBS, the Defense Logistics Agency's bid board, every day, full of codes like NSNs and laid out differently by each office. The product leans on language models to read them, so we measured how often the models get the details wrong.

With Yashvi Mehta and Émillien Lavallée, I built a benchmark on four real RFQs. The models had to find seven fields in each: NSN, quantity, unit, delivery time, delivery type, delivery address and whether the contract was set aside for small businesses. Each RFQ went in twice, once as extracted text and once as images of the pages, and every answer was compared against a value we'd checked by hand.

Text beat images for both models, and GPT-4o-mini reading page images did worst, with 3 of 28 values wrong. Text has its own blind spot, though: it can't show which checkbox is ticked, and that's how an RFQ marks a small-business set-aside.

The sample was small, and to stay under token limits the models only saw the first ten pages of each RFQ. I presented those limits to SalesPatriot's CTO along with what we found and what we recommended.

The models were useful but couldn't be trusted alone, so we spent the next two weeks making them checkable, joined by Krish Sachithanand, Aditya Desale and Garvit Chadha. First we built an audit log that records the model, prompt version, timestamp and sources behind every answer. We chose not to store full responses, which kept the log light and kept sensitive text out of it.

Then we designed a review screen. The AI flags a risk in an RFQ, highlights the clause it came from and explains the issue, the risk and the impact, and the contractor confirms or dismisses it before anything goes out.

ModelTextImagesOverall
GPT-4o-mini2 of 283 of 289%
Claude 3.5 Sonnet1 of 282 of 285%

Critical errors, meaning the model gave a wrong value. Formatting slips, like “4” for “4.000”, were counted separately and aren't included.

First page of a DLA request for quotations, with four fields outlined
Page 1 of 26 from one of the RFQs. The set-aside answer is a pair of checkboxes, and the address says “See Schedule”: it's on page 7. The buyer's contact details are blurred.
An audit log entry showing the timestamp, model, two prompt versions and the source RFQs
The audit log. Each answer keeps its model, prompt versions, timestamp and source documents.
Mockup of the review screen: an RFQ with a highlighted clause next to the AI's explanation and Confirm and Dismiss buttons
The review screen, a Figma mockup. The flagged clause is highlighted in the RFQ.
NextMustCheck →