Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Public data

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.

Share of 104 lookup questions answered correctly, per model, without label text and with the label sections

Each question scored as the mean of its 3 runs; intervals from resampling the 20 labels

Without label textWith the label sections95% interval over labels50%: always answering yes

Claude Sonnet 5.5, through the model provider's API, one request: correct without label text 31% (interval 24% to 38%), with the sections 100% (interval 100% to 100%); gain +69 points (interval +62 to +76)Claude Sonnet 5.5Claude Haiku 5.5, through the model provider's API, one request: correct without label text 16% (interval 9% to 22%), with the sections 100% (interval 100% to 100%); gain +84 points (interval +78 to +91)Claude Haiku 5.5GPT-6.1 Sol, through the GPT models' maker's command-line agent, non-interactive: correct without label text 18% (interval 12% to 25%), with the sections 99% (interval 98% to 100%); gain +81 points (interval +73 to +88)GPT-6.1 SolGPT-6 Luna, through the GPT models' maker's command-line agent, non-interactive: correct without label text 30% (interval 23% to 36%), with the sections 96% (interval 94% to 99%); gain +67 points (interval +58 to +75)GPT-6 LunaGemini 3.8 Flash, through the Gemini model's maker's command-line agent, print mode: correct without label text 0% (interval 0% to 1%), with the sections 100% (interval 100% to 100%); gain +100 points (interval +99 to +100)Gemini 3.8 Flash0%25%50%75%100%

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

ModelArmCorrectIntervalWrongCannot tellNo answer
Claude Sonnet 5.5Without label text31%24% to 38%4%65%0%
Claude Sonnet 5.5With the label sections100%100% to 100%0%0%0%
Claude Haiku 5.5Without label text16%9% to 22%3%81%0%
Claude Haiku 5.5With the label sections100%100% to 100%0%0%0%
GPT-6.1 SolWithout label text18%12% to 25%0%81%1%
GPT-6.1 SolWith the label sections99%98% to 100%0%0%1%
GPT-6 LunaWithout label text30%23% to 36%4%63%3%
GPT-6 LunaWith the label sections96%94% to 99%1%0%3%
Gemini 3.8 FlashWithout label text0%0% to 1%0%98%1%
Gemini 3.8 FlashWith the label sections100%100% to 100%0%0%0%

Source: druglabels/results/summary.json and druglabels/results/outcomes.csv.

Key figures
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 correctWrong 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)

ModelWithout label textCorrectWith the sectionsCorrect
Claude Sonnet 5.5no 30 of 3yes 33 of 3
Claude Haiku 5.5cannot tell 30 of 3yes 33 of 3
GPT-6.1 Solyes 33 of 3yes 33 of 3
GPT-6 Lunayes 1, cannot tell 21 of 3yes 33 of 3
Gemini 3.8 Flashcannot tell 30 of 3yes 33 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.

What a team should do

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

ModelArmDrugTemplateTermKeyWrong runs
Claude Sonnet 5.5Without label textmetoclopramide hydrochlorideDrug interactionsopioidsno3 of 3
Claude Sonnet 5.5Without label texteletriptan hbrDrug interactionsfluconazoleno3 of 3
Claude Sonnet 5.5Without label texteletriptan hbrContraindicationsangioedemayes3 of 3
Claude Sonnet 5.5Without label textdextroamphetamine saccharate, amphetamine aspartate, dextroamphetamine sulfate, and amphetamine sulfateDrug interactionsalcoholno3 of 3
Claude Sonnet 5.5Without label textalosetronContraindicationsliver problemsyes1 of 3
Claude Haiku 5.5Without label texteletriptan hbrDrug interactionsfluconazoleno3 of 3
Claude Haiku 5.5Without label textmetformin hydrochlorideContraindicationsanuriano2 of 3
Claude Haiku 5.5Without label textponesimodContraindicationsheart failureyes2 of 3
Claude Haiku 5.5Without label textdapagliflozinContraindicationsangioedemayes3 of 3
GPT-6 LunaWithout label texteletriptan hbrDrug interactionsMAO inhibitorsyes1 of 3
GPT-6 LunaWithout label textponesimodIngredientssilicon dioxideno2 of 3
GPT-6 LunaWithout label textdextroamphetamine saccharate, amphetamine aspartate, dextroamphetamine sulfate, and amphetamine sulfateIngredientscorn starchyes1 of 3
GPT-6 LunaWithout label textalosetronDrug interactionswarfarinno3 of 3
GPT-6 LunaWithout label textalosetronContraindicationsliver problemsyes1 of 3
GPT-6 LunaWithout label texteslicarbazepine acetateIngredientscroscarmellose sodiumno1 of 3
GPT-6 LunaWithout label textfluoxetineDrug interactionsopioidsyes1 of 3
GPT-6 LunaWithout label textamlodipine besylate and olmesartan medoxomilDrug interactionsdigoxinno2 of 3
GPT-6 LunaWithout label textamlodipine besylate and olmesartan medoxomilIngredientssilicon dioxideno1 of 3
GPT-6 LunaWith the label sectionsponesimodIngredientssilicon dioxideno2 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

ModelDrug interactions (40), withoutContraindications (26), withoutIngredients (38), withoutDrug interactions, withContraindications, withIngredients, with
Claude Sonnet 5.537%64%3%100%100%100%
Claude Haiku 5.513%44%0%100%100%100%
GPT-6.1 Sol22%33%4%98%100%100%
GPT-6 Luna26%50%20%96%97%96%
Gemini 3.8 Flash0%1%0%100%100%100%

Limits

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

PredictionVerdictPer model
With the label sections, every model answers at least 90% of questions correctly.heldClaude 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.missedClaude 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.missedClaude 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.missedClaude 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.missedClaude 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.heldClaude 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

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.