Retrieved article excerpt
Open article · Retrieved 2026-11-19T19:23:45.990547+00:00
# Giving business context to AI agents - does it help? Does it save money? Let's find out
We took a realistic payments dataset built by Adyen and Hugging Face and ran the same AI agent on it with and without context.
Updated November 16, 2026
Jump to a section
- [The takeaway](https://contextflo.com/benchmarks/dabstep-haiku#the-takeaway)
- [Benchmark setup](https://contextflo.com/benchmarks/dabstep-haiku#benchmark-setup)
- [Why we picked this dataset](https://contextflo.com/benchmarks/dabstep-haiku#why-we-picked-this-dataset)
- [What the dataset contains](https://contextflo.com/benchmarks/dabstep-haiku#what-the-dataset-contains)
- [The questions](https://contextflo.com/benchmarks/dabstep-haiku#the-questions)
- [How we ran it](https://contextflo.com/benchmarks/dabstep-haiku#how-we-ran-it)
- [Results from exploration (25 questions)](https://contextflo.com/benchmarks/dabstep-haiku#results-from-exploration-25-questions)
- [Docs alone: same accuracy, lower cost](https://contextflo.com/benchmarks/dabstep-haiku#docs-alone-same-accuracy-lower-cost)
- [The four notes](https://contextflo.com/benchmarks/dabstep-haiku#the-four-notes)
- [When context makes it worse](https://contextflo.com/benchmarks/dabstep-haiku#when-context-makes-it-worse)
- [Our first number was wrong](https://contextflo.com/benchmarks/dabstep-haiku#our-first-number-was-wrong)
- [Testing on new questions](https://contextflo.com/benchmarks/dabstep-haiku#testing-on-new-questions)
- [What's still wrong](https://contextflo.com/benchmarks/dabstep-haiku#what-s-still-wrong)
- [What it costs](https://contextflo.com/benchmarks/dabstep-haiku#what-it-costs)
- [If you're doing this at your company](https://contextflo.com/benchmarks/dabstep-haiku#if-you-re-doing-this-at-your-company)
- [Receipts](https://contextflo.com/benchmarks/dabstep-haiku#receipts)
## The takeaway
Giving an AI agent the company's docs was no better than giving it nothing: 40% of tries right without them, 36% with. What worked was four short notes, the kind of thing a teammate tells a new hire. They took it to 76% right, at about a quarter of the cost per answer. If your company has docs, it probably has the same gaps. The rules that answer questions live in people's heads.
## Benchmark setup
We ran a Claude Haiku 5.5 agent on a public test dataset that mimics a payments company, with realistic, messy data, and compared it with and without context (the company's docs, plus notes we wrote).
| | |
| --- | --- |
| **Model** | Claude Haiku 5.5 |
| **Dataset** | [DABstep](https://huggingface.co/blog/dabstep), by Adyen and Hugging Face |
| **Exploration** | 25 hard questions, picked by a script with fixed rules |
| **Test set** | 42 new questions, a mix of question kinds |
| **Setups compared** | Only the tables, + the company's docs, + docs and four notes from exploration |
| **Tries** | 3 per question, in every setup |
We started by exploring the data with a small set of hard questions. As expected, the agent did poorly with only the tables, and the docs didn't make it any better. So we read its wrong answers and wrote the four notes.
Then we froze the notes and tested on a fresh set of questions they were never written from, a wider mix where some turned out easier than others. The numbers in the takeaway come from that test.
You don't need to know anything about payments to follow this. Payments is just a stand-in for any company's data: tables, some docs, and rules only the team knows.
## Why we picked this dataset
Most AI tests use clean, made-up puzzles. Real company data isn't like that. It has a price list nobody fully understands, docs that are mostly right, and things "everyone just knows".
[DABstep](https://huggingface.co/blog/dabstep) is a public test built by Adyen, a large payments company, and Hugging Face. It describes a fake company with realistic data and realistic mess. The questions are the kind a finance or ops lead would ask. The right answers are kept secret, so nobody can cheat.
We loaded the data into a database (BigQuery) exactly as it comes. No cleaning, no renaming.
## What the dataset contains
Picture a company that handles card payments for online shops. Shoppers pay by card, and the company charges the shop a small fee on every payment.
| Table | In plain words | Rows |
| --- | --- | --- |
| payments | Every card payment in 2023: which shop, how much, which card, how the shopper paid, and whether it turned out to be fraud | 138,236 |
| fees | The price list: what each kind of payment costs the shop | 1,000 |
| merchant\_data | The 30 shops: what they sell and how their account is set up | 30 |
| two small lookup tables | Shop categories and countries | small |
The shops have made-up names like Rafa\_AI, Crossfit\_Hanna and Golfclub\_Baron\_Friso. The card brands are made up too: GlobalCard, NexPay, TransactPlus, SwiftCharge.
The company also comes with **two documents**: a manual on how fees and fraud work, and a guide to the payments table. They're decent docs. In the setups with docs, the agent gets all of it, as written:
- **What the tables and columns mean**: all five tables and most of their columns.
- **Seven business rules from the manual**: how a fee is worked out (a fixed amount plus a percentage), that a blank (`null`) in a price row means "any", that monthly volume and fraud are counted per calendar month, and what local payments, account type, way of paying and capture delay mean.
That's real business context, not just a schema. Everything the agent was given is [on GitHub](https://github.com/contextflo/contextflo-benchmarks/blob/main/dabstep/context/context.json).
### The challenge of the price list
The price list has 1,000 rows. Each row describes a kind of payment and what it costs, like a line in a shipping rate table ("under 2 kg, to Europe, express: €12").
Here is one row, exactly as it sits in the data:
```
Loading code sample...
```
In plain words: a debit card payment on TransactPlus, at a shop in one of those eight categories, paid in one of two ways (C or B), costs 10 cents plus 0.19% of the amount.
To price a payment, you find the rows that describe it and use their prices. Notice the blanks (`[]` and `null`), though. What do they mean? The data doesn't say, and the manual only covers one of the two. Hold that thought.
## The questions
The test has 450 questions. We used them in two rounds: an **exploration** round of 25 hard questions, where we read the wrong answers and wrote the notes, and a **held-out test** of 42 new hard questions the notes never saw (more on that below).
Neither set was picked by hand. A script chose both, using fixed rules (no questions where "not applicable" is the answer, a mix of question types), so anyone can rerun it and get the same questions. Each has a single right answer: a number, a letter, or a short list. Some examples, in plain words:
- "If we changed this one price, how much more or less would Rafa\_AI have paid in July?"
- "For a €10 credit card payment on GlobalCard, which way of paying is the most expensive?"
- "If Rafa\_AI got its fraudulent shoppers to pay a different way, which way would cost the least?"
Every business asks questions like these about its own numbers: what did this cost, what if we changed that, where should we steer customers.
## How we ran it
- **Same agent every time.** Same model, instructions and tools. The agent connects to the database through Contextflo, which lets it see the tables, read any notes we give it, and run queries. It can't change anything.
- **In exploration, one note at a time.** Six setups: only the tables, then the docs, then each note added in turn, so you can see what each one did (75 answers per setup).
- **Every try starts fresh**, with no memory of the last one.
- **Every run is published**, including the wrong ones.
## Results from exploration (25 questions)
| What the agent had | Questions right on all 3 tries | Tries right | Cost per try |
| --- | --- | --- | --- |
| Only the tables | 3 of 25 | 14 of 75 (19%) | ~6 cents |
| + the company's docs | 3 of 25 | 12 of 75 (16%) | ~2 cents |
| + note 1: a blank means "any" | 7 of 25 | 23 of 75 (31%) | ~3.5 cents |
| + note 2: add up every price that applies | 14 of 25 | 44 of 75 (59%) | ~1.5 cents |
| + note 3: "monthly" means calendar month | 13 of 25 | 45 of 75 (60%) | ~1.4 cents |
| + note 4: how to answer "which is cheapest" | 14 of 25 | 47 of 75 (63%) | ~1.2 cents |
**How to read this:** there are 25 questions, each tried 3 times. The percentages count tries, not questions. The 3 tries show whether the agent is repeatable, so they don't count as 75 separate tests. The first column is the stricter measure.
**How it's scored:** where someone had submitted the exact same answer to the official scoreboard, we use the scoreboard's verdict. Otherwise we do a strict check against an answer sheet we rebuilt from the scoreboard (the real answers are secret). More on that below.
Cost is what the AI model charged per try. The database bill is covered further down.
## Docs alone: same accuracy, lower cost
Adding the manual didn't change accuracy. 19% vs 16% is too small a difference to count with this many questions. It did cut the cost per question by about two thirds.
Without docs, the agent spends most of its effort working out what the columns mean, running query after query to guess. With docs it stops guessing what the data *is*. But it still doesn't know how the business *uses* it. Knowing what a column means isn't the same as knowing how to answer the question.
## The four notes
Each note came from reading the agent's wrong answers and asking: what would a teammate have told it? Two add something the docs don't have. Two clarify something the docs already say, because the agent had the rule and still got it wrong.
| Note | New or clarified? |
| --- | --- |
| 1. A blank means "any" | **Clarified.** The manual covers `null`, but not the empty lists `[]` the price list also uses |
| 2. Add up every price that applies | **New.** The docs never say one payment can match several prices |
| 3. "Monthly" means calendar month | **Clarified.** The manual says it; the note gives the exact steps |
| 4. How to answer "which is cheapest" | **New.** A how-to for one type of question, not a business rule |
### Does a blank mean "none" or "any"?
A blank in a price row means "any". A blank card type means any card, not no card.
This one clarifies the manual. The manual says it, but only for `null`. The card type, shop category and way-of-paying columns are never `null`: they use an empty list `[]` for "any". The note spells that out for both.
Without this note, the agent read blanks as "doesn't apply", so it ignored most of the price list and came up with fees that were too low. It went from 16% to 31% with it.
*At your company:* a subscription with an empty end date. Is it cancelled, or does it never end? Everyone on the team knows. The table doesn't say.
### One price, or all of them?
One payment can match several rows of the price list, and it pays all of them.
This one is new. The manual explains how one row's price is worked out, but never says a payment can match more than one.
Without this note, the agent found one matching row and stopped. It's like a restaurant charging a table the service charge but forgetting the large-group charge that applies too. With it, accuracy went from 31% to 59%, the biggest jump, and runs got about 40% faster because the agent stopped going in circles.
*At your company:* does a partly refunded order still count as revenue? Does a customer with two discounts get both? One sentence, and almost every number changes.
### Which month is "monthly"?
Some prices depend on how much a shop sold that month, like a bulk discount. "Month" means January, February and so on, not the last 30 days, and you count money, not number of payments.
This one clarifies the manual, which already says it. We restated