AI answers over company data: drug labels round
On 20 public drug labels, five AI models answered 96% to 100% of 104 lookup questions correctly with the label sections and 0% to 31% without them, mostly by saying they could not tell
Each question asks whether one section of one label mentions a term, keyed from the label text itself, so with the sections the answer is on the page. Per model, the sections added +67 to +100 points (every interval above zero). Without them, the models stated a wrong yes or no on 0% to 4% of questions; with them, 0% to 1%.
Main limitation 20 labels and 104 lookup questions whose answer is in the supplied text by construction, so they test reading, not clinical judgment. Two models ran on the model provider's API and three through agent command lines, so route and model are mixed: compare each model with itself.
Each question scored as the mean of its 3 runs; intervals from resampling the 20 labels
The route and the model are mixed. Two models ran on the model provider's API, three through agent command lines, so compare each model with itself, not with the others.
Show the data
Per model and arm, 104 questions, 3 runs each: share correct with its 95% interval over labels, and the shares wrong, cannot tell and no answer
| Model | Arm | Correct | Interval | Wrong | Cannot tell | No answer |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | Without label text | 31% | 24% to 38% | 4% | 65% | 0% |
| Claude Sonnet 5.5 | With the label sections | 100% | 100% to 100% | 0% | 0% | 0% |
| Claude Haiku 5.5 | Without label text | 16% | 9% to 22% | 3% | 81% | 0% |
| Claude Haiku 5.5 | With the label sections | 100% | 100% to 100% | 0% | 0% | 0% |
| GPT-6.1 Sol | Without label text | 18% | 12% to 25% | 0% | 81% | 1% |
| GPT-6.1 Sol | With the label sections | 99% | 98% to 100% | 0% | 0% | 1% |
| GPT-6 Luna | Without label text | 30% | 23% to 36% | 4% | 63% | 3% |
| GPT-6 Luna | With the label sections | 96% | 94% to 99% | 1% | 0% | 3% |
| Gemini 3.8 Flash | Without label text | 0% | 0% to 1% | 0% | 98% | 1% |
| Gemini 3.8 Flash | With the label sections | 100% | 100% to 100% | 0% | 0% | 0% |
Source: druglabels/results/summary.json and druglabels/results/outcomes.csv.
| Correct with the label sections96% to 100%per model; no answer on 0% to 3% | Correct without label text0% to 31%per model; balanced keys, so always answering yes scores 50% | Said "cannot tell" without label text63% to 98%per model; it counts as not correct | Wrong yes or no stated0% to 4%per model, without label text; with the sections 0% to 1% |
One question, five models
Chosen after the results by a rule written down before looking for it: the first question in file order with a yes key that every model got right in all 3 runs with the sections, and that at least one model answered wrongly without them.
The label one manufacturer's current US prescribing information for eletriptan hbr, taken by mouth (label version 2, effective 2025-01-22).
The question Does the contraindications section of this label mention angioedema (the word "angioedema", or a plural)?
...(DHE) or methysergide [see DRUG INTERACTIONS (7.1)]. Hypersensitivity to eletriptan hydrobromide tablets (angioedema and anaphylaxis seen) [see WARNINGS AND PRECAUTIONS (5.9)]. Recent use (i.e., within at least 72 hours) of...
From the label's contraindications section, as supplied in the documented arm
Each model's 3 answers to this question, per arm (the key is yes)
| Model | Without label text | Correct | With the sections | Correct |
|---|---|---|---|---|
| Claude Sonnet 5.5 | no 3 | 0 of 3 | yes 3 | 3 of 3 |
| Claude Haiku 5.5 | cannot tell 3 | 0 of 3 | yes 3 | 3 of 3 |
| GPT-6.1 Sol | yes 3 | 3 of 3 | yes 3 | 3 of 3 |
| GPT-6 Luna | yes 1, cannot tell 2 | 1 of 3 | yes 3 | 3 of 3 |
| Gemini 3.8 Flash | cannot tell 3 | 0 of 3 | yes 3 | 3 of 3 |
How each model was reached
Each model reached the questions a different way, so a gap between two models may come from the route rather than the model. The with and without comparison is made within each model.
- Claude Sonnet 5.5: the model provider's API, one request
- Claude Haiku 5.5: the model provider's API, one request
- GPT-6.1 Sol: the GPT models' maker's command-line agent, non-interactive
- GPT-6 Luna: the GPT models' maker's command-line agent, non-interactive
- Gemini 3.8 Flash: the Gemini model's maker's command-line agent, print mode
What a team should do
- Put the document in front of the model. From a drug's name and label version alone, no model got more than 31% of these questions right; with the three sections, the lowest was 96%. An assistant over controlled documents should retrieve the current version and answer from it.
- Allow "cannot tell" and count it apart. Without the text, the models said they could not tell on 63% to 98% of questions rather than guess. A format that forces yes or no might turn those into guesses; this round did not test that, so keep the option until you have.
- Key questions from the document, not from an expert's memory. Every key here comes from a literal word rule over the supplied text, so grading needs no reviewer, and every disagreement can be read against its passage.
- Count the tool's failures apart from the model's answers. Here a run whose connection dropped got one rerun, and one still failing scored as no answer, never as a wrong answer.
The wrong answers
A wrong answer is a yes or no that differs from the key, stated as fact. With the sections, the only wrong answers were 2 of GPT-6 Luna's 3 runs on one question: whether the ponesimod label's description mentions silicon dioxide. It lists "silica colloidal anhydrous", the same ingredient under another name, so the model read "mentions" more loosely than the literal word rule that keys the answer "no". The key stands, as declared.
Show all 19 rows
Every question with at least one wrong yes or no, per model and arm
| Model | Arm | Drug | Template | Term | Key | Wrong runs |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | Without label text | metoclopramide hydrochloride | Drug interactions | opioids | no | 3 of 3 |
| Claude Sonnet 5.5 | Without label text | eletriptan hbr | Drug interactions | fluconazole | no | 3 of 3 |
| Claude Sonnet 5.5 | Without label text | eletriptan hbr | Contraindications | angioedema | yes | 3 of 3 |
| Claude Sonnet 5.5 | Without label text | dextroamphetamine saccharate, amphetamine aspartate, dextroamphetamine sulfate, and amphetamine sulfate | Drug interactions | alcohol | no | 3 of 3 |
| Claude Sonnet 5.5 | Without label text | alosetron | Contraindications | liver problems | yes | 1 of 3 |
| Claude Haiku 5.5 | Without label text | eletriptan hbr | Drug interactions | fluconazole | no | 3 of 3 |
| Claude Haiku 5.5 | Without label text | metformin hydrochloride | Contraindications | anuria | no | 2 of 3 |
| Claude Haiku 5.5 | Without label text | ponesimod | Contraindications | heart failure | yes | 2 of 3 |
| Claude Haiku 5.5 | Without label text | dapagliflozin | Contraindications | angioedema | yes | 3 of 3 |
| GPT-6 Luna | Without label text | eletriptan hbr | Drug interactions | MAO inhibitors | yes | 1 of 3 |
| GPT-6 Luna | Without label text | ponesimod | Ingredients | silicon dioxide | no | 2 of 3 |
| GPT-6 Luna | Without label text | dextroamphetamine saccharate, amphetamine aspartate, dextroamphetamine sulfate, and amphetamine sulfate | Ingredients | corn starch | yes | 1 of 3 |
| GPT-6 Luna | Without label text | alosetron | Drug interactions | warfarin | no | 3 of 3 |
| GPT-6 Luna | Without label text | alosetron | Contraindications | liver problems | yes | 1 of 3 |
| GPT-6 Luna | Without label text | eslicarbazepine acetate | Ingredients | croscarmellose sodium | no | 1 of 3 |
| GPT-6 Luna | Without label text | fluoxetine | Drug interactions | opioids | yes | 1 of 3 |
| GPT-6 Luna | Without label text | amlodipine besylate and olmesartan medoxomil | Drug interactions | digoxin | no | 2 of 3 |
| GPT-6 Luna | Without label text | amlodipine besylate and olmesartan medoxomil | Ingredients | silicon dioxide | no | 1 of 3 |
| GPT-6 Luna | With the label sections | ponesimod | Ingredients | silicon dioxide | no | 2 of 3 |
Per question type
Without label text, the ingredient questions were the lowest of the three templates for 4 of the 5 models, at 0% to 20% correct per model; Gemini 3.8 Flash answered almost nothing correctly without the text in any template. Which inactive ingredients a tablet holds depends on one manufacturer's formulation, which no model can know from a drug's name; "cannot tell" is the honest answer there and still scores as not correct.
Share correct per question template, without label text and with the sections (questions per template in brackets); described, not tested
| Model | Drug interactions (40), without | Contraindications (26), without | Ingredients (38), without | Drug interactions, with | Contraindications, with | Ingredients, with |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | 37% | 64% | 3% | 100% | 100% | 100% |
| Claude Haiku 5.5 | 13% | 44% | 0% | 100% | 100% | 100% |
| GPT-6.1 Sol | 22% | 33% | 4% | 98% | 100% | 100% |
| GPT-6 Luna | 26% | 50% | 20% | 96% | 97% | 96% |
| Gemini 3.8 Flash | 0% | 1% | 0% | 100% | 100% | 100% |
Limits
- 20 labels and 104 questions from one public source: prescription drugs taken by mouth, with the three sections together at most 20,000 characters. Intervals resample those 20 labels.
- Lookup questions about wording, keyed by a literal word rule. A real assistant gets harder questions, and a model that reads "mentions" more loosely or strictly than the rule is scored wrong; such cases are listed, not re-keyed.
- 23 runs of the two GPT models ended with an answer but count as no answer, because both of their tries logged a reconnect notice; that lowers those two models by at most 3 points. 4 Gemini runs without label text returned no parsable answer.
- The routes differ: one API request for two models, an agent command line with its own instructions for the other three. Differences between models mix the route and the model.
- Labels change weekly. The sample is the version current at download, pinned by set id, version and hashes; a fresh download gives other labels.
- This is a method shown on public data. I have no pharmaceutical or regulatory experience, and nothing here is medical advice.
Use this at your company
Copy this prompt into your own AI assistant to run the same test on your own documents.
This method comes from Diogo Travassos's study "Questions about public drug labels, with and without the label text" (https://diogotravassos.dev/ai-answers-over-company-data/drug-labels.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. Test whether our AI assistant answers questions about our own controlled documents (labels, specifications, procedures, contracts) from the document in front of it, and what it says when the document is missing. Method: 1. Pick a sample of current documents by a written rule (for example, every product of one type, drawn with a fixed seed), and keep the exact version of each. 2. Write question templates that ask whether a named section mentions a term, with the exact words that count. Write the term lists before reading the documents. 3. Key every answer mechanically from the document text: "yes" when a listed word or its plural appears in that section, "no" otherwise. Draw one yes and one no question per document and template, so always answering "yes" scores 50%. 4. Ask each question twice: once with only the document's name and version, once with the relevant sections pasted in. Use the same instructions, and allow the answer "cannot tell". 5. Ask each question at least three times per arm and model, and keep every response. 6. Score each run as correct, wrong (a yes or no that differs from the key), cannot tell, or no answer. Report each model on its own. Data you need: the documents as published, with their version ids, and access to the assistant as your staff use it. Checks before we trust any figure: - Screen every document for text addressed to AI readers before it enters a prompt, and drop any that carry it. - Count wrong answers stated as fact apart from "cannot tell"; they carry different risks. - Read every wrong answer against the passage; a looser or stricter reading of "mentions" than the key is a finding about the question, not the model. - If models run through different tools, compare each model with itself, not models with each other. Report back: per model and arm, the share correct, wrong, cannot tell and no answer, with intervals over documents; every wrong answer with its passage; and which question types failed most without the document. In your report, say which study you followed and link it: https://diogotravassos.dev/ai-answers-over-company-data/drug-labels.html
In plain words
Every prescription drug sold in the US carries a label, the prescribing information, written in fixed sections: what the drug contains, who must not take it, which other drugs it interacts with. People who make, sell or review drugs answer questions from these documents, which makes them a natural test for an AI assistant over company documents.
This round took 20 current labels from the US regulator's public data, asked whether a section mentions a given term, and asked each model twice: once naming the label only, once with the sections pasted in. The right answer comes from the label text, so no expert has to grade.
- Label sections
- The contraindications, drug interactions and description sections of one label, as published.
- Contraindication
- A condition in which the drug must not be used.
- Inactive ingredient
- A filler, coating or dye in the tablet, listed in the description section.
- Route
- How a question reaches a model: one API request, or an agent command line that adds its own instructions.
- Cannot tell
- An answer the models were allowed to give when they could not decide.
Predictions
Six predictions with bands were frozen before any model call; 2 of 6 held. None was a safe bet: even the two about the sections arm could have missed if a model read "mentions" differently from the key.
The six predictions declared before any model call, with the verdict (held only when it holds for every model) and the per-model verdicts
| Prediction | Verdict | Per model |
|---|---|---|
| With the label sections, every model answers at least 90% of questions correctly. | held | Claude Sonnet 5.5 held; Claude Haiku 5.5 held; GPT-6.1 Sol held; GPT-6 Luna held; Gemini 3.8 Flash held |
| Without label text, every model answers between 40% and 75% of questions correctly. | missed | Claude Sonnet 5.5 missed; Claude Haiku 5.5 missed; GPT-6.1 Sol missed; GPT-6 Luna missed; Gemini 3.8 Flash missed |
| For every model, accuracy with the sections minus accuracy without is between +15 and +55 percentage points, and its interval lies above zero. | missed | Claude Sonnet 5.5 missed; Claude Haiku 5.5 missed; GPT-6.1 Sol missed; GPT-6 Luna missed; Gemini 3.8 Flash missed |
| Without label text, the ingredient questions are every model's least accurate template. | missed | Claude Sonnet 5.5 held; Claude Haiku 5.5 held; GPT-6.1 Sol held; GPT-6 Luna held; Gemini 3.8 Flash missed |
| Without label text, every model states a wrong yes or no on at least 10% of questions. | missed | Claude Sonnet 5.5 missed; Claude Haiku 5.5 missed; GPT-6.1 Sol missed; GPT-6 Luna missed; Gemini 3.8 Flash missed |
| With the label sections, every model states a wrong yes or no on at most 5% of questions. | held | Claude Sonnet 5.5 held; Claude Haiku 5.5 held; GPT-6.1 Sol held; GPT-6 Luna held; Gemini 3.8 Flash held |
Changes to the protocol
- Declared after a pilot of 12 runs per model, which is never scored, and before any scored run: a final message made of several lines, each the same allowed answer object, counts as that answer, because the Gemini model's command-line agent can return its structured answer twice, on two lines.
- Two other declared changes, one during the pilot and one during the final collection, both before any outcome was scored, set how the runs were collected; neither changed a prompt, a setting or a scoring rule.
No question, key, prompt, model setting or analysis rule changed after any model call.
Method and checks
The data
The openFDA drug label API, downloaded once with no key (data last updated 2026-10-30). openFDA places its data in the public domain under CC0 unless marked otherwise. openFDA notes that label content is neither altered nor verified by the FDA, may not be the labeling on products now sold, and must not be relied on for decisions about medical care. Data provided by the U.S. Food and Drug Administration (https://open.fda.gov).
The sample
Labels of human prescription drugs taken by mouth with a drug interactions, a contraindications and a description section. The generic names with at least two such labels were sorted, shuffled with seed 20261101 and taken in order; per name, the label with the latest effective date; kept when the three sections together are at most 20,000 characters. The first 20 that passed are the sample. Before any label text entered a prompt, an untrusted-input screen read every section for text addressed to AI readers, traps or attacks; it dropped 0 labels. Brand and manufacturer names were replaced with placeholders, so the page names drugs by generic name only. One placeholder also replaced an ordinary word: in the disulfiram label's interactions section, the ordinary word in capitals after "phenytoin and its" reads "[brand name]", and the models received it that way. In the public copy of the sample, phone numbers in label text read "[phone number]".
The questions and keys
Three templates ask whether one section mentions a term: drug interactions (40 questions), contraindications (26) and inactive ingredients (38). The term lists were written before any label text was read. The key is "yes" when a listed word, or its plural, appears in the named section as a whole word, ignoring case. Per label and template, one term with a yes key and one that appears nowhere in the three sections were drawn with a seeded generator: 104 questions, 52 with a yes key.
Arms, models and routes
Without label text: the instructions, a line naming the label (generic name, taken by mouth, label version, effective date) and the question. With the label sections: the same, with the three sections added after the instructions. The instructions define "mentions", allow "cannot tell", say to use no tools and ask for one JSON object; every route enforced that answer schema.
- Claude Sonnet 5.5 (model id claude-sonnet-5-5): the model provider's API, one request per run, max_tokens 1024, thinking off between tool calls (between_tools), effort medium, strict answer schema (the main study's settings).
- Claude Haiku 5.5 (model id claude-haiku-5-5): the model provider's API, one request per run, max_tokens 1024, thinking disabled, effort medium, strict answer schema (the main study's settings).
- GPT-6.1 Sol (model id gpt-6.1-sol): the GPT models' maker's command-line agent, non-interactive, version 0.166.0, reasoning effort medium.
- GPT-6 Luna (model id gpt-6-luna): the GPT models' maker's command-line agent, non-interactive, version 0.166.0, reasoning effort medium.
- Gemini 3.8 Flash (model id gemini-3.8-flash-medium): the Gemini model's maker's command-line agent, print mode, version 1.2.11, effort medium (part of the model id).
The design, written before any model call, and the frozen protocol name each tool and its flags.
Runs, scoring and analysis
3 runs per question, arm and model, 624 per model. A run that failed for a method reason got one declared rerun; still failing, it is no answer. Each run is correct, wrong (a yes or no that differs from the key), cannot tell or no answer, and a question's score is the mean of its runs. Intervals: a percentile bootstrap that resamples the 20 labels, 10,000 replicates, seed 7, the same labels for both arms in a difference.
Reproduce
From the study folder, python -B -m druglabels.score and python -B -m druglabels.analyze rebuild every figure from the stored runs with no key and no network; labels_page.py builds this page and python -B -m druglabels.numbers checks its numbers.
Displayed numbers
Shares are whole percentages of 104 questions; intervals are 95%. Exact values are in the results files.
The main study pageFrozen protocolAll figuresEvery scored runThe questionsThe label sections