Making an AI bid writer refuse to lie
TL;DR Highlight
Structural checks made a bid-writing AI flag 11 requirements it couldn't evidence instead of inventing answers
Who Should Read
A backend developer whose document-analysis LLM pipeline writes plausible fiction and reports 'completed'
Core Mechanics
- Models write what sounds plausible
- After 'our certifications include', a model tends to list certifications whether or not the bidder holds them.
- Plausibility and truth diverge exactly on the claims evaluators check.
- The model invented a partner company
- In an NHS test tender, 42 requirement rows were deferred to a consortium partner that did not exist.
- The name was left as [PARTNER_NAME] and disclosed only at the bottom of the document.
- Their own verifier matched keywords and scored most of those 42 rows as covered.
- The partner problem was fixed structurally, not with prompts
- A capability-fit check against the bidder's real profile runs before any section is written.
- Requirements without evidence go to a visible partner slot, and the count appears in a banner at the top.
- If the bid recommendation says no-bid, the system refuses to draft.
- Silent coverage collapse is the scariest failure
- On the same 99-page NHS pack, extraction fell from 366 to 184 requirements seven days apart, with every run reporting 'completed'.
- One chunk returned empty and the code quietly unioned the empty set into the total.
- The fix: no silently empty chunks, coverage measured against page span, and a pass hunting for missed items.
- The verifier itself was broken once
- It flagged 90 of 158 citations as unverified, but a hand-checked sample of 27 were all grounded.
- The cause was whitespace and hyphenation differences between the PDF text layer and the model's quote.
- The verifier now has its own eval set.
- Results on the live run
- The analysis found 45 mandatory requirements in the 133-page pack, 13 of them high severity.
- The draft addressed 40 of the 45 directly and flagged 11 out loud.
Community Reactions
How to Apply
- Turn empty results into errors
- Today, make chunk or batch LLM calls throw when they return empty results.
- Log total extracted count next to page count and compare against the previous run.
- Normalize text before verifying quotes
- Clean whitespace, line breaks and hyphen splits in both source and model quote before comparing.
- Measure verifier false alarms by hand-checking 20-30 samples.
- Leave unknowns as slots
- Add to your prompt: 'Leave any name, certification or figure not in the input profile as [SLOT_name]'.
- Count the slots and show the total at the top of the output.
- Gate generation up front
- Add a step that judges, per requirement, whether you hold evidence before drafting.
- If evidence is missing, show the gap list to the user first instead of generating.
Try It
# Paste into Claude or ChatGPT as-is (simplified version of the article's method)
You are a bid writer. You may only claim facts explicitly stated in [Company Profile] below.
Rules:
1. For each requirement, quote the supporting sentence from the profile verbatim as 'Evidence'. If none exists, write 'No evidence'.
2. For requirements with no evidence, do not write an answer; leave a [PARTNER_OR_EVIDENCE_NEEDED] slot.
3. Never invent company names, certifications, amounts or people not in the profile.
4. At the very top, write 'Read this first: N requirements have no evidence' and list them.
[Company Profile]
{{company profile}}
[Requirements]
{{requirements}}
Try next: paste the result back and ask 'check that each quoted evidence sentence appears verbatim in the profile, one by one'.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles