What an AI needs from company data: the induced note round
Written definitions and a note learned from answer keys can't be told apart on this test (a check added after the results): both got three AI models over 96% right on 40 new bank questions that mostly say what to count
If you have written definitions, keep them. With the note and with the definitions, every model scored near the top, and well above its own score with table and column names alone. On the two questions the note lost, it lacked the definitions' list of the kinds a transaction can be (found after the results). The 273-word note was refined from two Claude models' failures on 36 older questions and their answer keys, then frozen before any test run.
Main limitation The answer keys the note learned from were written alongside the documentation, so the note may have picked up those definitions second hand. And 36 of the 40 test questions say in their own words what to count, 26 with an instruction and 10 more only by naming which activity and which dates count, as in "posted during July" (both counted after the results), so this test can't show whether a note works out what counts when a question doesn't say. A team without written definitions would first have to agree on the right answers, and that agreement is the definitions in another form.
The question
A recent paper, Self-Refining Prompt Induction for Streaming Text-to-SQL, reports that a prompt refined from failures raised scores across seven models, not only the one it was refined on. It scored with judge models on a synthetic workload. Earlier rounds of this study showed that written business definitions lift scores on data questions. So can a short note learned from failures do the same job on questions it never saw, and which definitions can't it work out?
The test uses the study's synthetic bank tables, which stand in for a bank's account and card ledger so that no customer data is shared, and exact scoring: an answer counts only if its query returns the right rows, to the cent. The 40 test questions are this round's own set. An independent author wrote them and their keys from the tables alone, without seeing the documentation, the note or the earlier questions.
- Names only
- The model gets the table and column names and nothing else.
- Induced note
- A short working note written by a refiner model from the failures on training questions, then frozen.
- Written documentation
- The study's business definitions: which rows count, which date decides a period, which values a column holds, which joins are safe.
- Answer key
- The right answer to a question, with the query that produces it.
- Posted
- A transaction's status once the bank has recorded it in its ledger. Pending and void ones don't change balances or totals.
- Interval
- How far a difference moves when the questions are resampled. One that reaches zero could be no difference.
- Near the top score
- Scores close to 100%, where a test has little room to tell two setups apart.
The result, model by model
Share of 40 new questions answered correctly, mean of three runs. Models are never pooled. The axis starts at 60%.
Names onlyInduced noteWritten documentation
Show the data
| Model | Runs | Names only | Induced note | Documentation | Note gain, points | Documentation gain, points | Documentation minus note, points |
|---|---|---|---|---|---|---|---|
| Claude Haiku 5.5 | 3 | 32.0 (80.0%) | 38.7 (96.7%) | 40.0 (100.0%) | +16.7 (+6.7 to +28.3) | +20.0 (+7.5 to +32.5) | +3.3 (0.0 to +8.3) |
| Claude Sonnet 5.5 | 3 | 34.0 (85.0%) | 39.0 (97.5%) | 40.0 (100.0%) | +12.5 (+4.2 to +21.7) | +15.0 (+5.8 to +25.0) | +2.5 (0.0 to +7.5) |
| GPT-6 Luna | 3 | 29.0 (72.5%) | 39.3 (98.3%) | 39.0 (97.5%) | +25.8 (+14.2 to +38.3) | +25.0 (+12.5 to +38.3) | −0.8 (−2.5 to 0.0) |
The rule was fixed before any test run. Take the documentation's lead over the note, in points, with its interval. If the whole interval sits above zero, the note falls short. If its top is under 5 points, the note matches. Otherwise this test can't tell.
- Claude Haiku 5.5: documentation minus note +3.3 points, interval 0.0 to +8.3. By the rule, this test can't tell.
- Claude Sonnet 5.5: documentation minus note +2.5 points, interval 0.0 to +7.5. By the rule, this test can't tell.
- GPT-6 Luna: documentation minus note −0.8 points, interval −2.5 to 0.0. By the rule, the note matches.
Both the note and the documentation scored over 96% for every model, so the gap between them comes down to one or two questions. That is why the two Claude models land on "can't tell": the documentation led on so few questions that the interval runs from zero past the margin.
A check added after the results, not fixed in advance: the interval behind GPT-6 Luna's match can't do the job the rule gives it. No question favoured the documentation for GPT-6 Luna, and an interval made by resampling the questions can then never rise above zero, however many questions there are. So the rule's "matches" counts the documentation's wins rather than bounding the gap. An exact bound for none of 40 questions still allows the documentation to win on up to 8.8% of questions, and so to lead by up to 8.8 points, above the 5-point margin. It would take about 72 questions with no documentation win to bring that bound under 5 points. The same bound is 16.9 points for Claude Haiku 5.5 and 13.2 for Claude Sonnet 5.5. Read this way, this test can't tell for any of the three models, and a harder or larger set of questions could still separate the note from the documentation.
The note was refined on the failures of the two Claude models. GPT-6 Luna had no part in it, so its row is the one test here of whether a note carries over to a model that didn't shape it. It gained the most from the note, +25.8 points, but it also started lowest with names only, so it had the most room to gain.
Read after the results: part of the note's gain over names only may come from its first line, which says "never ask for clarification". With names only, GPT-6 Luna asked for clarification on 6 of its 120 answers and Claude Haiku 5.5 on 7. Every test question was written to have one right answer, so each request was scored wrong, and the requests account for up to 5.0 of GPT-6 Luna's +25.8 points and up to 5.8 of Claude Haiku 5.5's +16.7. That is an upper bound: with the documentation, which has no such line, no model asked either, and Claude Sonnet 5.5 never asked at all. The line was learned from training questions that all have one right answer, like the test questions, so it is right here only because no question needed asking. On questions people really ask, some of which do need asking, the same line tells a model to guess.
One question the note missed
The independent author, who had only the tables, wrote this question:
What was the largest single USD cash withdrawal posted during July 2026? Return amount as a positive number of cents.
The value in the data is withdrawal, and the note never names it. The one training question about withdrawals said "withdrawal amount" in its own words, so both models got it right with an empty note and it never reached the refiner as a failure. The note's line on values reads:
Values: transactions.event_kind uses short names such as 'deposit', 'purchase', 'transfer' (not 'internal_transfer' or 'external_cash').
With that note, Claude Sonnet 5.5 guessed a longer name on every run. This is the first run's query. It follows every other rule in the note, runs with no error and returns zero:
SELECT COALESCE(MAX(amount_minor),0) AS amount_minor FROM transactions WHERE event_kind='cash_withdrawal' AND status='posted' AND direction='debit' AND currency='USD' AND posted_at >= TIMESTAMP '2026-07-01' AND posted_at < TIMESTAMP '2026-08-01'
The documentation lists the kinds outright:
event_kind is purchase, refund, deposit, withdrawal or transfer.
With it, the same model used the right name and was right on 3 of 3 runs. This is the first:
SELECT MAX(amount_minor) AS max_withdrawal_minor FROM transactions WHERE event_kind = 'withdrawal' AND status = 'posted' AND currency = 'USD' AND posted_at >= TIMESTAMP '2026-07-01 00:00:00' AND posted_at < TIMESTAMP '2026-08-01 00:00:00'
A zero from a query that runs cleanly is the kind of wrong answer a reader may not catch. A note learned from failures covers what failed. A definition written on purpose covers what the column holds.
What a team should do
- If you have written definitions, keep them. The note never beat them by more than a fraction of a question, and they hold the value lists that a note learns only when a failure happens to show one.
- If you have no written definitions but do have questions with checked answers, an induced note is a cheap first step: here the three models went from 72.5% to 85.0% right with names only to 96.7% to 98.3% with the note. Up to 5.8 points of one model's gain can come from the note's line against asking for clarification rather than from any definition, a line that is right here only because no test question needed asking; on real questions it would tell a model to guess. Those checked answers are where your definitions now live, since someone had to decide what counts before writing them, so the note moves that work rather than removing it. Most of these test questions also said what to count; questions people really ask often don't, so test a note on those before trusting it.
- Before trusting a note, add the values each column really holds. Both questions the note lost for the Claude models turned on the one line that lists them, and listing a column's values takes one query.
Which definitions the note holds
Before any test run, 12 rules from the documentation were listed, each with a fixed pattern for spotting it in the note and another for tagging the test questions that lean on it. The patterns find 11 of the 12 in the note. The table shows the words each pattern found, so the match can be judged.
| Rule in the documentation | Words the fixed pattern found in the note | Test questions | Claude Haiku 5.5, note / documentation, % right | Claude Sonnet 5.5, note / documentation, % right | GPT-6 Luna, note / documentation, % right |
|---|---|---|---|---|---|
| Only posted events count in spend, cash flow and balances | posted | 40 | 97 / 100 | 98 / 100 | 98 / 98 |
| Periods use the posting date, not the event date | posted_at | 32 | 96 / 100 | 97 / 100 | 100 / 100 |
| Periods are half-open at 00:00 UTC | half-open | 26 | 95 / 100 | 96 / 100 | 100 / 100 |
| A refund counts on its own posting date | Refunds are refunded_minor. For an organization breakdown | 11 | 100 / 100 | 100 / 100 | 100 / 100 |
| Net card spend is purchases minus refunds | Net spend is SUM(net_spend | 5 | 100 / 100 | 100 / 100 | 100 / 100 |
| Net external cash flow covers all non-transfer credits and debits | external | 0 | no questions | no questions | no questions |
| Transfer volume counts the debit leg; a transfer counts once | transfer_group | 8 | 92 / 100 | 100 / 100 | 100 / 100 |
| A balance is a stock: sum across accounts on one date, never across dates | closing_minor | 9 | 100 / 100 | 100 / 100 | 93 / 89 |
| A NULL category is a real bucket called Uncategorized | LEFT JOIN | 6 | 100 / 100 | 100 / 100 | 100 / 100 |
| Accounts with zero activity or zero active cards stay in | zero | 6 | 100 / 100 | 100 / 100 | 100 / 100 |
| Active-card count uses current status; status never removes past spend | card_status | 1 | 100 / 100 | 100 / 100 | 100 / 100 |
| Sum the refund side first when joining refunds to purchases | none | 2 | 100 / 100 | 100 / 100 | 100 / 100 |
Read after the results, not fixed in advance: four of the matches don't state their rule in full. The refund pattern found the letters "own" inside "breakdown", the Uncategorized pattern found a LEFT JOIN line about cards, and the card status pattern found only the value 'active'. The zero pattern found a line about counting cards while "keeping zero groups", but for an organization breakdown the note says "Include only organizations with activity.", the opposite of the rule's other half. The two test questions that break a total down by organization both say themselves to keep every organization, and with the note every model was right on both on every run, so this test can't show what that line costs. Tags are loose too: a question is tagged when its text or key matches the pattern, and the first rule tags all 40. On the questions tagged with the rules the note doesn't state in full, the note was right on every run for every model, but those are 1 to 11 questions per rule, too few to conclude anything. Most of those questions also state the rule themselves: all 6 tagged with the Uncategorized rule say how to treat activity without a category, both tagged with several refunds to one purchase say to count the purchase once or to combine the refunds, and 6 of the 11 tagged with the refund date rule say the refunds are counted when they post. So the note's clean record on those rules says little about the note. Across all 40 questions, 26 carry an instruction on what to count, for example "Count each transfer once, rather than counting both account entries." A second count, also read after the results, finds the word "posted" in 31: a question that says what posted, and when, settles itself which activity counts and which date to use. Counting either kind, 36 of the 40 say what to count. The patterns behind these counts were tried on the questions before they were fixed in files committed before the code that applies them, so the counts describe the questions and test nothing. The words each pattern found are in the downloads.
Also read after the results: on most runs the documentation beat the note on two questions, both for the Claude models and both about the kinds of transaction. On the withdrawal question above, the note was right on 1 of 3 runs for Claude Haiku 5.5 and on 0 for Claude Sonnet 5.5. On a question about net deposits minus withdrawals, Claude Haiku 5.5 with the note left out transfers and purchases instead of naming deposits and withdrawals, so card refunds stayed in, and it was right on 1 run. One question went the other way. Asked how the combined CAD balance changed over July, GPT-6 Luna with the documentation took opening and closing balances from the last day alone on every run, which gives that one day's change. It was right on 2 of 3 runs with names only and on 1 with the note. The documentation's line on balances reads:
It is a stock: sum across accounts on a single date, never across dates.
What was predicted
Four predictions were committed with the design, before any test run. None held in full.
- The note would gain less than the documentation for every model, by at least 2 points. On the means it did for Claude Haiku 5.5 (+16.7 against +20.0, a gap of +3.3 points) and Claude Sonnet 5.5 (+12.5 against +15.0, a gap of +2.5), but read after the results, the interval on each of those gaps reaches down to zero, under the 2 points, so this test can't confirm it. It did not for GPT-6 Luna (+25.8 against +25.0).
- The note would state fewer than half of the 12 rules. The fixed patterns found 11, and even without the four loose matches the note states 7 of them in full, still most.
- The note would gain less on the models that did not generate the training failures. GPT-6 Luna, the one such model that ran, gained the most.
- On questions from an author who never saw the documentation, names-only scores would start higher than on part 3's questions, so every gain would shrink. For the two models both rounds ran, names-only scores were lower, 80.0% and 85.0% against 81.5% and 88.9%, and the documentation's gain was larger, +20.0 and +15.0 points against +15.7 and +11.1. The question sets differ, so this compares two sets of questions, not two runs of one test.
Limits
Apart from the main limitation above:
- The note and the documentation differ on only one or two questions per model, and one question of 40 is 2.5 points, so a single question moves each result by that much.
- The questions are this round's own set, so these scores can't be set beside the study's other rounds as if they were one test.
- The plan named four models. Gemini 3.8 Flash is left out of every result, since only whole runs count: it was run for 15 answers after the other three models' results had been seen, then stopped before any was scored. All 15 are stored, and none was usable: 12 came back as several answers in one reply, which the scorer rejects, and 3 could not be read even after one rerun. So only one tested model had no part in training the note.
- One warehouse, one fictional bank and one note. A second run of the refining step could write a different note, and nothing here measures how much that would change the scores.
Use this at your company
Copy this prompt into your own AI assistant to run the same test on your company's data.
This method comes from Diogo Travassos's study "Can a note learned from failures replace written definitions?" (https://diogotravassos.dev/what-ai-needs-from-company-data/induced-note.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. I want to test whether a short note learned from failures can stand in for written business definitions when an AI assistant answers questions about our company's data, measured against answers we already know. 1. Help me collect two sets of questions people have actually asked about our data, taken from real requests in the asker's own words rather than written for the test: about 30 to train on and at least 80 to test on. In the study, 40 test questions were too few to rule out a 5-point gap between the note and the definitions: when the definitions win no question it takes about 72, and more when they win any. I will work out every right answer separately. You may use the training answers, and you must not see the test answers until scoring. 2. Start from an empty note. Answer the training questions with only the table and column names plus the note, run each query on a read-only copy of the data, and compare with the right answers. Revise the note from the failures, keep it under 300 words, and refuse any revision that loses a question the last kept note got right. Whoever revises the note must not see our written definitions or the test questions: if you can read our definitions, have a separate session that can't, ideally on a model other than the ones under test, write the revisions. Stop when nothing fails or after a fixed number of revisions, then freeze the note. 3. Answer the test questions in three setups: names only, names plus the frozen note, and names plus our written definitions. Run each setup at least three times for each model we are considering. Report every model separately and never average models together. 4. Count answers that are cut off, refused or malformed apart from wrong ones. Report back: the share correct for each model and setup with its spread across runs; for the definitions against the note, how many test questions each won outright and an exact bound on the definitions' lead, since an interval made by resampling the questions can't rise above zero when the definitions win none; which definitions and which lists of column values the note never states; the wrong answers that looked believable; and the limits. Say that the note was trained on right answers and who wrote them, and whether the scores sit so near the top, or the test set is so small, that the test cannot tell the setups apart. In your report, say which study you followed and link it: https://diogotravassos.dev/what-ai-needs-from-company-data/induced-note.html
Method and checks
How this round ran
The note. The training set was the 36 analytical bank questions from part 3 of the study, with their keys, answered by the two Claude models: 72 answers per revision. A refiner model outside the tested set saw the table and column names, the current note and the failures (the question, the model's query, its result, the right result and the key's query). It never saw the documentation or the test questions. The note was capped at 300 words, and a revision was refused if it lost anything the last kept note got right. An empty note scored 59 of 72. A revision that scored higher but lost 2 earlier successes was refused. The kept note scored 72 of 72, at 273 words against 890 for the documentation. With no failures left the loop stopped, and the note was frozen before any test run.
The questions. An independent author who never saw the documentation, the note or the earlier questions wrote business questions and their keys from the six tables. The first 40 whose keys ran were kept, in the author's order, and frozen with the note. None was removed or re-keyed after that.
The test. Three arms and three runs of every question per model, one query per answer through a strict answer format, with no tools and no database access while answering. The three models were reached in different ways, so each model is compared only with itself. The names-only and documentation prompts are part 3's text. Each query then ran on a read-only copy of the bank data, and scoring is exact, with no judge. Only whole runs count, and failures of the method are counted apart from wrong answers; the three models had none, and no answer was cut off. Intervals are paired percentile bootstraps over questions, with 10,000 replicates, on each question's mean across runs. A ceiling rule was set in advance, for names-only scores at or above 90% on three of the four models, and it was not met: no model reached 90% with names only. Read after the results, that rule watched names only, while the verdicts are drawn from the note and the documentation, which scored over 96% for every model.
Read after the results. The exact bound is the one-sided 97.5% Clopper-Pearson bound on the share of questions where the documentation's mean across runs beats the note's. No question can move the lead by more than one question, so that share also bounds the documentation's lead. The census counts questions whose text matches a fixed pattern for an instruction on what to count, and, for each rule the note doesn't state, the tagged questions whose text states the rule. Other readings made after the results: the word "posted" in the census, with the reason it counts; the points that names-only requests for clarification cost each model, read as an upper bound; a fourth loose rule match and the questions it could touch; the test size the prompt above advises; and the first prediction read against the interval of its gap as well as the mean. Each file was committed before its code, but after its patterns were tried on the questions, so the counts describe the questions and test nothing. None of these readings changes a result or a verdict of the rule set in advance.
Gemini 3.8 Flash. The restore was committed before its first test call, and the stop before any of its answers was scored.
The checks. Tests re-score the stored answers with no key. The runs themselves can't be repeated from the download alone, but every stored answer can be re-scored.
Files. The frozen note, the protocol, the test questions and keys, the note's revisions, the restore and its stop, the readings made after the results and their counts, more readings and their counts, further readings and their counts, one last reading, the summary, each scored answer, each stored answer and how to re-score them.