Lab studyAgents at work

A docs-only assistant on conflicting documents: how much it invents depends on how you grade

We gave two models an invented shop's documents, 43 of them with old and new versions that disagree. Almost nothing counted as made up on clean documents. On messy ones the same answers score from 0 to 19 percent or 5 to 28 percent, depending on a grading rule.

Method, limits and raw data further down this poster.

Two overlapping sheets of paper, one black and one orange, whose ruled lines run in different directions where they overlap.
Two overlapping sheets of paper, one black and one orange, whose ruled lines run in different directions where they overlap.

A "docs-only" assistant is told to answer only from the company's documents and to say so when they don't cover the question. Teams build these for price lists, policies and support desks. Three questions decide whether one is safe to put in front of customers. Does it invent an answer when the documents are silent? When an old and a new version of a document disagree, does it give the old value as if it were current? And does making it quote the documents first, a common recommendation, reduce invention?

We tested all three on an invented home-goods shop: prices, a returns policy, delivery terms, a loyalty club and a repair desk. The shop is synthetic, retail only, and every document was generated by a seeded script from a fact table. The seed and the table were committed before any run, so every correct answer and every trap answer (the old value, the neighbouring value) comes from the table, not from our hands.

01The short version#

  • On short, clean documents almost nothing went wrong. 360 calls, 2 invented answers, both from one model on one question.
  • On long, messy documents, the answers counted as "invented" mostly have one shape. The model says the current documents don't cover the question, then mentions an old or neighbouring value with a caveat. Whether that is invention depends on the grading rule. Under our pre-registered rule it is. Under a rule we wrote after reading the answers, most of it is not. We show both, with real answers.
  • In a corpus where every document carries an effective date, 0 of 120 conflict answers presented the old value as current. Undated documents were not tested.
  • Quote-first did not reliably reduce invention, and it cost 2 to 2.7 times the output tokens.

The study in four numbers

0 of 120
conflict answers that gave the old value as currentevery document carried an effective date
2 of 360
invented answers on short, clean documents
27
answers counted as invented under the frozen rulewe read every one
2 to 2.7×
output tokens when the model quotes first
Figure 1 EXP-004 and EXP-004b, 840 calls in all.

02The two set-ups#

EXP-004 baselineEXP-004b main study
Documents12, about 1,500 tokens, no conflicts43, about 31,000 tokens
Messinessnone6 old/new pairs that disagree (4 where the new one says it replaces the old, 2 where it doesn't), neighbouring products with similar terms, FAQ fragments, a staff memo, an email thread
Questions45 (30 answerable, 15 not covered)60: 15 single-document, 10 needing two documents, 15 conflict questions (only the current document is right), 20 near-misses that the current documents don't answer (10 with a plausible value in a neighbouring document, 10 where the detail exists only in a replaced document)
Calls360480

The whole document set goes into the prompt. There is no search step.

Two ways of asking. Plain: answer from the documents, or write NOT IN DOCUMENTS. Quote-first: the same instruction, plus "quote the passage you rely on before answering". Two models, Claude Haiku and Claude Sonnet (current versions, one vendor), low effort, 2 repeats per question. Grading is automatic, by code, fixed before the runs.

03The clean baseline (EXP-004)#

PlainQuote-first
Haiku, invented (of 30 not covered)00
Sonnet, invented (of 30 not covered)20
Haiku, answerable correct (of 60)5960
Sonnet, answerable correct (of 60)6060

Both inventions were Sonnet, plain arm, on the same question (opening hours on 31 December), in both repeats: "The documents don't list special hours for 31 December, so the regular hours apply." It sees the gap, then fills it from a neighbouring rule.

That is a ceiling. With this little going wrong there was nothing to compare between the two ways of asking, so we built EXP-004b to make the hard cases common.

04Long, conflicting documents (EXP-004b)#

480 calls, 0 invalid, 0 refusals, pooled over 2 repeats.

Two gradings, side by side.

  • (a) Frozen: exactly as pre-registered. Any substantive answer to a not-covered question without the NOT IN DOCUMENTS marker counts as invented, including "the documents don't say, but...".
  • (b) Corrected, post-hoc: written after reading the first repeat's answers and before the second repeat ran. Four questions turned out to be answerable from the current documents by absence. For example, the current price list says "items not listed here are no longer sold", so "no longer sold" is a correct answer about a discontinued item. Those four moved to their own group. Two smaller fixes: one gold pattern missed "90-day", and one ambiguous question was dropped. We also widened the "absence" pattern once, after it misread one answer.
Invented on not-covered questionsPlainQuote-first
Haiku, (a) frozen, of 4062
Haiku, (b) corrected post-hoc, of 3200
Sonnet, (a) frozen, of 40811
Sonnet, (b) corrected post-hoc, of 3265
  • Conflict questions (old vs new value): 0 of 30 stale answers in every cell, under both gradings, so 0 of 120 overall. In 19 answers the model gave both values, and every one of them marked the current value as current.
  • Answerable questions: under (a), Haiku 48 and 50 of 50, Sonnet 46 and 49 of 50 (one wrong "not in documents"). Under (b), 48 of 48 in every cell.
  • The four "answerable by absence" questions (b only): 16 of 16 correct for each model.
  • Plain vs quote-first, exact McNemar test: 4 primary tests, none below p = 0.05 (uncorrected). Haiku under (a) leans towards quote-first (4 vs 0 discordant, p = 0.125), but under (b) both arms are at 0, so that lean depends on the grading and is not a finding.

The same answers, graded two ways

(a) Frozen, pre-registered(b) Corrected, post-hoc

  1. Haikuplain6 of 40(b) Corrected, post-hoc: 0 of 32
  2. Haikuquote-first2 of 40(b) Corrected, post-hoc: 0 of 32
  3. Sonnetplain8 of 40(b) Corrected, post-hoc: 6 of 32
  4. Sonnetquote-first11 of 40(b) Corrected, post-hoc: 5 of 32
The data as a table
Model and arm(a) Frozen, pre-registered(b) Corrected, post-hoc
Haiku, plain6 of 400 of 32
Haiku, quote-first2 of 400 of 32
Sonnet, plain8 of 406 of 32
Sonnet, quote-first11 of 405 of 32

Bar length is the share counted as invented. Under (b), four questions moved to their own group, so each cell is out of 32.

Figure 2 EXP-004b, not-covered questions only, pooled over 2 repeats.

05What the "invented" answers actually say#

Under the frozen rule, 27 answers counted as invented. We read all 27. None presented an old or neighbouring value as current.

  • 2 gave no old value at all: "We don't offer Sunday delivery. Our current delivery schedule is Monday to Saturday."
  • 18 said the item or service is no longer offered or not covered, then mentioned the old or neighbouring value with a label:
    • "The Bamboo drawer organiser is no longer sold. It was $18 on the 2025 price list, but it is not on the current 2026 price list, which replaces the 2025 list."
    • "Furniture repairs are quoted in store, so the documents don't give a set turnaround time. (Electrical repairs take about 5 business days, but that doesn't apply to furniture.)"
    • "The documents say dinner sets come in 12 pieces only, so there is no 6-piece dinner set. The only one listed is the 12-piece set (currently $139)."
  • 7 went one step further. The current document was silent, so the model concluded that an old fee or perk no longer exists: "The $10 furniture restocking fee appeared only in the old January 2025 policy, which has been replaced, so it no longer applies." That is an inference from "these terms replace all earlier terms". It may be what the shop intends, but the documents never say "there is no restocking fee".

All 11 answers still counted as invented under the corrected grading are of this last kind (7) or the furniture-repair kind (4).

So the finding is not a single invention rate. The dominant behaviour is "the documents don't cover this, but here is the old value, marked as old", and a grading rule has to decide what that is. If your support desk accepts every one of these shapes, none of the 27 is an invention. Under the corrected grading the rate is 0 to 19 percent. If any answer without a clean "not in documents" is a failure, it is 5 to 28 percent, depending on model and arm.

What the 27 "invented" answers actually said

None of the 27 presented an old or neighbouring value as current. Tap a group to read one.

Figure 3 The 27 answers counted as invented under the frozen rule, read one by one.

06Quote-first: cost and one observation#

  • Output tokens. Quote-first produced 2.7 times the output tokens for Haiku in both studies, and 2.0 times (EXP-004) to 2.3 times (EXP-004b) for Sonnet. In EXP-004b the documents were cached and dominated the bill, so total cost rose only about 3% (Sonnet) and 13% (Haiku). With a smaller or uncached document set, the output increase is a bigger share.
  • Exploratory, not pre-registered: in quote-first answers, Sonnet often quoted the replaced document and then explained that it had been replaced (8 and 6 of 60 answers in the two repeats, Haiku 3 and 1). It is small, and we report it only as an observation. We do not claim a quote-first effect.

07What we'd tell a team building one of these#

  1. Decide in advance what counts as "invented" for your assistant. Is "not covered, but the old price was $18, now discontinued" acceptable? The same answers swing from about zero to over a quarter depending on that rule.
  2. Test with documents that conflict and with near-miss questions, not clean ones. Our clean set produced 2 inventions in 360 calls and told us almost nothing.
  3. Don't adopt quote-first expecting less invention. Here it did not reliably reduce it, and it costs 2 to 2.7 times the output.

08Limits#

  • The four question defects behind grading (b) were found by reading answers. That is why both gradings are shown. A fresh question set, written in advance with these cases in mind, is the confirmatory test.
  • One synthetic shop, English only, two models from one vendor, whole document set in the prompt, 2 repeats.
  • Every document carried an effective date. The 0 of 120 stale result is a ceiling for that kind of corpus. It is not evidence that dating prevents stale answers.
  • 4 primary tests with no correction for multiple comparisons. None was significant anyway.

09Next#

  • The same conflict questions with the effective dates removed: does the stale-answer rate stay at zero?
  • A fresh, pre-registered question set to confirm the answer-shape finding.
  • A search step instead of the whole document set in the prompt, where the old document may be the only one retrieved.

10Reproduce#

The generator seed, fact table, corpus, harness, both grading scripts, the deviations (dated before the second repeat) and every raw answer are logged. Model cost: EXP-004 $1.07, EXP-004b about $1.28 including a 24-call screen that confirmed the documents were cached. The aggregate table is in exp004_results.csv.

Sources and notes

  1. [1] U2AI Lab, EXP-004 (clean baseline) and EXP-004b (long, conflicting documents), results table exp004_results.csv, published with this pieceU2AI Lab
U2AI

Tell us about your hardest process.

This blog is written by the U2AI engineers who build and run AI systems inside organisations. 30 minutes with a senior engineer, and by the end you will know whether there is a project here, its scope, and the first step.

The next poster, by email

One article and one Lab study a month. No ads. One-click unsubscribe.

Check your inbox

We sent a confirmation link. You are subscribed only after you click it.