Prosperaize

How we made a B2B SaaS client’s AI harness 2.5× faster, 22% cheaper and more accurate.

The client’s AI agent gave the right answers, and users waited for them. We worked on the harness around the models: the steps the agent takes, and which model does which job. Two changes, one at a time, each tested on the same 62 questions before it shipped.

2.5× faster typical answer, on the same 62 questions
Client
B2B SaaS data platform
Industry
B2B SaaS
Asked by
Engineering lead
What we did
Run
How it shipped
Three versions tested side by side on the same 62 questions, before release
Published
4 December 2026

Results at a glance

One evaluation run on the same 62 questions, before and after.

2.5×

faster typical answer, on the same 62 questions.

Evaluation run, 30 Nov 2026

22%

lower model cost per answer, at public list prices.

Evaluation run, 30 Nov 2026

4.5

out of 5 for factual accuracy on the reference questions, up from 3.7.

Evaluation run, 30 Nov 2026

3

regressions caught before release, not by users.

Evaluation run, 30 Nov 2026

The harness, after the two changes

A model for each job, and the turn ends when the final query returns data. The second draft nobody read now runs only when nothing comes back.

3.9×

faster reasoning loop, the step where most of the wait was.

Evaluation run, 30 Nov 2026 · median
A user’s question.CHECKS BEFORE THE LOOPRead the question.rewrite and analyse itMid-size modelMatch by similarity.names and terms in the questionSmallest modelTHE REASONING LOOPNewest large modelExplore the data.find where the answer sitsWrite the query.and check what comes backThe final query returns data.The turn ends there.Write the answer.from the rows foundNewest large modelA second draft.now only when the querycomes back emptyOne answer.

01 · The question

The answers were right. The wait was the complaint.

The client is a B2B SaaS company. Its customers work in its data platform every day, and its AI agent answers their questions from that data. We rebuilt the agent earlier this year.

Once the answers held up, users noticed the wait. Simple questions came back quickly. Harder ones took long enough to break the flow of work.

The ask was narrow: make it faster without making the answers worse. Users should notice nothing but the speed, and every change had to prove itself on the same questions before it shipped.

02 · What we found

The database wasn’t slow. The writing was.

We started from the production traces: every step of every answer, timed. Each database query came back in a fraction of a second.

The traces gave a simple model of the wait. It pointed at what the models wrote, and at two habits of this agent.

01A pause for every model callEach call cost a fixed pause, whatever it wrote. More calls, more pauses.
02Writing, not readingWriting a word took about 200 times longer than reading one. The wait grew with every word the models wrote.
03An answer written twiceOnce the agent had its data, a finishing step drafted an answer. Then the answer step wrote the real one.
04One large model for every jobThe same large model did quick lookups and wrote the final answer.

03 · What we did

Three levers. The free one first.

The model of the wait left three ways to shorten it. Only one of them trades against intelligence, so it went last.

Done first · measured aloneFewer calls that writeThe turn now ends as soon as the final query returns data. The finishing step runs only when nothing comes back. Same model, same reasoning, minus the draft nobody read.
Not yet · a later candidateLess writing per callShorter reasoning notes between the steps. It changes what the model writes, so it needs a test of its own.
Done secondFaster models where the job allowsA model for each step, matched to what the step needs. It trades against intelligence, unless the faster model is also the smarter one.

04 · A model for each job

We started from each step’s job, not from the model list.

Five kinds of step, each with its own need. The model follows the need.

StepIts jobWhat matters mostModel chosen
The reasoning loopExplore the data, write the query, decide when the answer is thereIntelligence, then speedNewest large model
Writing the answerTurn the rows found into the answer. It writes the mostWriting speedNewest large model
Reading the question, short repliesRewrite and analyse the question; short and no-result repliesTime to the first wordsMid-size model
Combining summariesLonger text from material it is givenWriting speed and costMid-size model
Similarity matching, batch summariesMatch names and terms by semantic similarity; pull facts from text it is givenSpeed and costSmallest model
The newest large model wasn’t a trade-offIt ranks far higher on a public leaderboard than the model it replaced, and writes about 1.9 times faster. It costs a third more per word and thinks before it answers. For the two steps that decide quality and write the most, it is smarter and faster at once.
Short steps need a fast startFor a short step, the wait before the first words counts more than writing speed. So those steps went to a mid-size model that doesn’t think before it answers.
Extraction needs a small modelWhen the right answer is in the text the model is given, a small, fast model is enough, at a fraction of the cost.

Each step’s model is now a setting the team can change without touching code.

05 · How we tested it

Risks named before the run. Three versions side by side.

The bar was set before the run: ship only if it is faster and the answers hold.

01As it ranThe baseline: one large model for every step.
02First change onlyThe same model. Against the baseline, it shows the change in the steps alone.
03Both changesA model for each step. Against version 02, it shows the change in models alone.

All three answered the same 62 real questions from the platform’s test set, one after another from the same machine, so their timings compare. Each question says what the agent should do: answer, decline or greet. Fifteen also carry a reference answer, written as a checklist of facts.

Ten conversations ran three times, to see how much the answers vary: 276 runs, with no errors. Automated judges scored every answer for accuracy, completeness, staying within the data, format and usefulness. A separate check compared what the agent did with what it should have done.

Five risks, named before the run

Four came true in some form. None stopped the release.

The riskWhat the test showedNext
The newest large model thinks before each call, and the loop makes several calls.The loop still got faster: quicker writing more than paid for the thinking.Nothing to do
The newer models don’t take the setting that keeps them predictable.Repeat runs returned the same rows less often: 9 of 15, against 12.The next loop
A different model draws lines differently, such as what to decline.The behaviour check found three questions that changed.Fixes before release
The newest large model costs a third more per word.Cost per answer still fell 22%: fewer words overall, and smaller models elsewhere.Nothing to do
The thinking a model does before it answers counts as words written.Words written rose 16% over the first change alone. The answers still came faster.Nothing to do

06 · Results

2.5× faster, 22% cheaper, and more accurate on the reference questions.

Both changes together cut the typical wait by 59%. The first change alone did about half of that, by halving the agent’s reasoning. The model change shortened every step, the answer included. Model cost per answer fell 22% at public list prices.

On the 15 questions with a reference answer, factual accuracy rose from 3.7 to 4.5 out of 5. Most of that gain comes from three questions going from 2 to 5: a good sign, on a small sample.

Side by side · before release

Same 62 questions, same data

The readout: two changes against the agent as it ran.

Compared with the agent as it ranFirst change onlyBoth changes
Typical wait30% shorter59% shorter
Wait for the slowest answers22% shorter57% shorter
Factual accuracy, 15 reference questions, out of 53.7, unchanged4.5, from 3.7
Model cost per answer, at public list prices17% lower22% lower
Same question, same answer, of 15 asked twice11, from 129, from 12
VerdictHalf the gain, no model riskKeep improving: ship both

Both changes ship. Three regressions go to fixes before release. The fourth, answers that vary more, became the next loop.

What got worse, caught before release

The faster models drew some lines in a different place. One fair question was declined, one question the client wants declined was answered, and one search gave up after repeated errors. The test set caught all three, not the users, and they go to fixes before release. The fourth, answers that vary more from run to run, became the next loop.

07 · The improvement loop

One turn of the loop, and the next one it set up.

A live AI system gets better in turns: measure the gap, change one thing, test it side by side with the live version, ship what wins. This turn made the agent faster. Its price is the next turn’s question.

Two turns of the improvement loop

Loop 1 · SpeedDone · November 2026
  1. Measure the gap.Every step of every answer, timed. The writing took the time, not the database.
  2. Change one thing.First the steps, then the models, so each gain could be measured.
  3. Test side by side.Three versions of the agent on the same 62 questions.
  4. Ship what wins.Both changes ship, once the three regressions are fixed.
The verdictKeep improving.The price of speed: the same question gets the same answer less often. That is the next loop.
Loop 2 · ConsistencyPlanned · next
  1. Measure the gap.Every test question, five runs: how often do the answers agree?
  2. Change one thing.Candidates: a model setting, a mid-size model, firmer rules where a question reads two ways.
  3. Test side by side.Against the agent now live, on the same questions.
  4. Ship what wins.A change ships only if it beats the live agent.
The first turn ran in November 2026 and is shown solid. The second is planned and is shown dashed.

Why consistency next: people who compare answers week to week need the same question to give the same answer. Asked twice, the faster agent did that for 9 of 15 repeated questions, against 12 before. That matters as much as speed.

Who owns it: an engineer who works inside the client’s team on one live system and owns its improvement loop. Measuring where the time and the errors go, changing one thing, testing it against the live version, deciding, and starting again.

08 · What the team took from it

Measure first, change one thing, name the price.

One turn of the loop, and what it taught.

Measure before you optimiseEveryone suspected the database. The timings pointed at the writing.
Keep changes apartThe change in the steps gave half the gain, with no model risk. The model change gave the rest and the accuracy gain, and it brought the regressions.
A new model is a new colleagueThe faster models drew the line on what to decline in a different place. Only a test set that says what the agent should do catches that.
Every gain has a priceHere it was consistency. Name the price and make it the next loop.

If this sounds like your company

A system that works can still keep people waiting.

Your AI system works, and people still wait for it.
You changed a model and can’t say what got better or what got worse.
Nobody owns the system after launch.
The same question gets different answers on different days.
Use cases in this caseAI product development

Does your AI work, and still keep people waiting?

Schedule a call with a partner
Or start on your own: the free AI Investment Diagnostic

Find out where AI could pay in your company. The report is yours either way.