CalculationIntermediateQuality, Cost & Token Economics / Cost modeling and unit economics / #3

Explain how a RAG pipeline's cost structure differs from a single model call.

PICK · retrieval cost economics

Fenbrook Research priced its move to retrieval as a bigger version of the same one line. The real cost split into five lines, and the two nobody separately priced turned out to matter most.

The direct answer
A single model call has one cost line: tokens in, tokens out. A RAG pipeline has five: query embedding, retrieval, reranking, a bigger grounded generation call, and the ongoing cost of keeping the index current as the corpus grows. Price every line on its own. Two of them, reranking and index upkeep, do not move with token count at all, and they are usually the lines that blow past a token-based forecast, not the extra tokens in the prompt.
Do this, in order
  1. Price a RAG pipeline as five separate cost lines, never as a bigger single call.Why: two of those lines don't track token count at all, and a token-based forecast will miss them completely.
  2. Budget reranking and index upkeep as their own lines from day one.Why: Fenbrook's launch forecast folded both into "roughly double the tokens" and undershot the real bill by more than half.
  3. Treat a hallucinated or missing citation as the expensive, hidden error, and a slightly bigger token bill as the cheap, visible one.Why: the cheap error shows up on the invoice every time. The expensive one shows up as a researcher's wasted week, or worse.
  4. Never cut retrieval's fan-out to save money without checking recall on a fixed set of known-relevant papers first.Why: that exact cut is what let a real paper go missing from an answer, with no error and no alert.
  5. Only skip retrieval and run a single call when the whole corpus is small and static enough to fit in one prompt.Why: below that size, stuffing the corpus into one call is genuinely cheaper and simpler, and RAG's extra lines cost more than they save.
  6. Recheck the whole cost model whenever corpus size, update frequency, or query volume changes a lot.Why: the line that dominates the bill moves depending on what's actually changing, not on a fixed calendar.

How to answer this, stage by stage

Nobody's testing whether you know the word "retrieval." They're testing whether you'll price it as a bigger single call, or actually count what's different about it.

1
Scope it to one concrete product before answering in the abstract
Say it like this
"Let's ground this in one product. Citelume is a research assistant Fenbrook Research built for academic researchers. Someone types a question in plain English, and Citelume searches a corpus of papers and writes back an answer with real citations. Boaz Solari is the engineer who owns what it costs to run."
Why this works
An abstract "how does the cost differ" question turns into a vague list fast. One product turns it into a real number problem.
2
Say your structure out loud before naming a single dollar figure
Say it like this
"I'm going to pick a position on how I'd cost this, say who feels each kind of cost, name which error is the expensive one to miss, then say what evidence would change my mind."
Why this works
Tells the interviewer you have a method, not a guess with a dollar sign on it, before you've said a single figure.
3
Position: name the actual pick before any of the reasoning
Say it like this
"A single call has one cost line, tokens in and tokens out. A RAG pipeline has five: embedding the question, searching the index, reranking the results, a bigger generation call that includes the retrieved text, and the ongoing cost of keeping that index current. I'd price all five separately from day one, because two of them don't move with token count at all."
Why this works
Commits to a structure before the numbers arrive, so the rest of the answer sounds like judgment, not a spreadsheet found halfway through talking.
4
Impact: say who actually feels each kind of cost
Say it like this
"The token line is the one everyone already watches. Whoever owns the API budget sees it move every time volume goes up. The other four lines are quieter. Reranking and index upkeep barely show up on a per-query napkin estimate, but a researcher feels them the moment a real paper goes missing from an answer."
Why this works
Splits the cost lines by who notices them first, which is what actually decides which ones get watched and which ones get ignored.
5
Cost asymmetry: name which error is cheap and which is hidden
Say it like this
"A few extra cents of tokens is the cheap, visible error. Everyone sees it on the bill and nobody's surprised. A hallucinated or missing citation is the hidden, expensive one. It costs nothing on the invoice and costs a researcher a week chasing a paper that doesn't exist, or worse, citing it in their own work. I'd spend to protect against the hidden one, not to shave the visible one."
Why this works
This is the heart of PICK. Naming which error is cheap and which is hidden is what makes the pick a real decision instead of a wish that both were free.
6
Kill criteria: say what would flip the pick
Say it like this
"If the corpus is small and barely changes, a few dozen papers one lab uses for a year, I'd flip this. Stuff the whole thing into one call's context and skip retrieval entirely. Below a certain size, the four extra lines cost more than they save."
Why this works
Shows the pick isn't stubborn. A confident answer that can also say when it would change is what separates judgment from a fixed opinion.
7
Close on the decision, not the arithmetic
Say it like this
"So: five cost lines, not one bigger line. Budget reranking and index upkeep on their own, since they're the two that don't track tokens. Spend to protect against a hidden citation error, not to shave the token line. And once the corpus is small and static enough to fit in a prompt, skip the whole pipeline."
Why this works
Ending on the rule, not the last number crunched, is what makes this sound like judgment instead of a cost sheet read aloud.

Let's learn

What actually changes in the bill when a tool stops answering from memory and starts answering from real documents?

Citelume is the research assistant Fenbrook Research built for academic researchers. Type a question, get back an answer written from real papers, with citations a researcher can actually check.

Before retrieval shipped, Citelume just asked the model the question directly, no lookup, nothing pulled from a real document. That single call cost about nine tenths of a cent, one line on the bill, tokens in and tokens out.

Boaz Solari, the engineer who owns Citelume's cost budget, priced the move to real retrieval the way most people price a bigger version of something they already know. He doubled the token line. Call it two cents a query, he told finance, still cheap.

Knowledge spark: what is reranking? A first, cheap search pulls back a wide pile of maybe-relevant papers by rough similarity. Reranking is a second, slower check that reads each one properly and puts the truly relevant ones on top. Skip it and the pile stays in roughly the order a cheap search guessed, not the order that's actually right.

The turn: the extra cents were never the real risk. The real risk was two cost lines Boaz's forecast never separately priced at all, reranking and keeping the index current, and neither one moves with token count the way the model call does.

The build-up: five lines instead of one, cost per query
$0.04 $0.02 0 Single call $0.009 Embedding $0.0001 Retrieval $0.0015 Reranking $0.006 Generation $0.024 Index upkeep $0.006 Total RAG $0.038
Single call, baselineEmbedding & retrievalReranking & index upkeepGeneration call
Embedding costs about a hundredth of a cent, shown as a hairline, not to scale. Reranking and index upkeep together cost more than embedding and retrieval combined, and neither one is a token cost.

Query embedding costs almost nothing, about a hundredth of a cent. Retrieval, the actual vector search, adds another six hundredths. Reranking, checking the top candidates properly before they reach the model, costs six tenths of a cent, more than embedding and retrieval put together. The generation call itself grows because it now has to read the retrieved passages, not just the question, so it jumps to about two and a half cents. And keeping the index current, embedding new papers as Fenbrook adds about fifteen thousand chunks a month, adds another six tenths of a cent once you spread that monthly cost across every query.

The forecast said RAG would cost about two cents a query. The real bill came to close to four cents, and reranking plus index upkeep, the two lines nobody separately priced, cost more than the entire single call by themselves.
The choice that mattered Boaz priced the move to retrieval by doubling the token line, because the only visible difference between the two designs was a bigger prompt. That was a reasonable guess the week retrieval shipped. It stopped being reasonable once reranking and index upkeep turned out to be real, recurring costs that had nothing to do with how many tokens the model read.
Hand sketched comparison. Left panel, a gauge icon labeled a few extra tokens, caption a few more cents a query, shows up on the bill every single time. A hand lettered VS sits between the two panels. Right panel, a sheet of paper with wavy lines standing in for text, labeled a hallucinated citation, caption costs nothing on the bill, costs a researcher a week chasing a paper that was never real.
The cheap error shows up on every invoice. The expensive one shows up as a researcher's wasted week, and it never once appears as a line item.

At its worst, an underpriced RAG budget doesn't just cost more than expected. It quietly pressures someone to cut the wrong line to make the number smaller, and the line that's easiest to cut, reranking's fan-out, is also the one protecting a researcher from a citation that was never really the best match.

What I'd leave alone: Citelume's "summarize this one open paper" mode, where a researcher pastes a single PDF and asks for a plain summary, doesn't need any of this. There's no corpus to search and no index to keep current. It's still just one call, one cost line, and building a five-line budget around it would spend effort where there's no real cost to track.

The lesson: a forecast can be completely honest about what it counts and still be the wrong number to plan by. Two cents really was double the token line. It never claimed to be the cost of a pipeline with five moving parts, two of which don't care how many tokens go through them.

Now here is the same thing as a story

Read the long version below when you want to feel why a modest cost cut went wrong, not just be told that it did.

Boaz Solari could price out a new feature to the month before Fenbrook's finance team finished reading his email. He'd spent three years pricing infrastructure for research tools before Citelume existed, and he built its retrieval budget himself the month it shipped.

The first several months were good. Citelume's corpus held about six hundred thousand paper chunks, and a query pulled the top forty candidates by similarity, reranked them properly, and handed the model the best eight. Researchers trusted it. Boaz watched the monthly bill line up close enough to his forecast to feel proud of the number.

Then Citelume grew fast. New labs signed on, the corpus quadrupled toward two and a half million chunks, and query volume climbed with it. Reranking's cost climbed too, since it scores every one of those forty candidates on every query. Nine months in, with the bill running hotter than planned, Boaz made a change that felt small: narrow the vector search to the top twenty candidates before reranking even starts, instead of forty. Fewer candidates to score, lower reranking cost, about four tenths of a cent saved on every query.

Nobody objected. It looked like the kind of sensible trim any engineer would make under budget pressure, and for the topics most researchers searched, the answers still looked fine.

It came back on an ordinary afternoon, and not as an error. A postdoc researching a specific drug interaction asked Citelume for the current evidence, got back a confident answer citing three papers, and moved on with her grant application. A week before the deadline, a co-author mentioned a paper she hadn't seen, directly on point, published two years earlier by a well-known lab in the field. She checked Citelume again. It still hadn't surfaced that paper. She flagged it to Boaz's team, more curious than upset.

Citelume never showed an error. It just quietly stopped looking in the one place the right paper happened to be sitting.

Boaz pulled the query and reran it against the old, wider candidate pool. The missing paper sat at rank twenty four by plain similarity, just outside the narrowed top twenty. With the old top forty window, reranking would have had a real shot at promoting it, since a cross-encoder is good at exactly this: catching a paper that's phrased differently but genuinely on topic. With the narrowed window, it never even reached the reranker to get that chance.

He didn't stop at one query. He pulled a golden set, fifty questions with a known, correct paper attached to each one, and ran it against both windows. With the old top forty, the system found the right paper in its top eight results about ninety one times out of a hundred. With the narrowed top twenty, that had quietly slipped to about seventy six, and nobody had checked it since the day the cut shipped.

The decision that opened the door wasn't the fan-out cut itself. Narrowing a candidate pool to save money is a normal, fair trade to try. The decision Boaz would take back is shipping it without a plan to ever check it again. A default chosen once, under pressure, quietly outlived the corpus it was sized for.

Run that afternoon again with one change: before any change to fan-out ships, it runs against the fifty-question golden set, and a recall floor has to hold, at least eighty eight papers found correctly out of every hundred. The narrowed window from nine months back would have failed that check before it ever reached production. Either it doesn't ship, or it ships smaller and safer, trimmed just enough to protect the number without dropping under the floor.

One design let a cost-saving default sit unwatched for nine months while the corpus underneath it quadrupled. The other design treats every change to retrieval as something that has to earn its place against a real, counted number, the same way a change to the model or the prompt would.

What I'd tell myself, back the week that cut shipped: a default that saves money and looks fine on the topics you happen to check is not the same thing as a default that's actually safe. The only way to know the difference is to measure it, on a schedule, not on a hope that nobody notices.

PICK, the four moves behind pricing a RAG pipeline honestly

This isn't a diagnosis question wearing a tradeoff's clothes. It's a real pick, and PICK is what keeps "RAG costs more" from staying a vague feeling instead of a defendable number.

PPosition. What's the actual call, stated before any reasoning?
A RAG pipeline's cost is five separate lines, not a bigger single call: query embedding, retrieval, reranking, a bigger grounded generation call, and ongoing index upkeep. Price and watch all five on their own.
State the position first, or the reasoning that follows just sounds like a search for whatever number was already assumed.
IImpact. Who feels each kind of cost, and in what units?
Finance feels the token line, it's visible on every invoice and scales cleanly with volume. Researchers feel reranking and index upkeep, not as dollars, but as whether the paper they needed actually showed up. A missing citation costs a researcher hours, sometimes a week, chasing down what should have been the first result.
Naming who feels which cost is what turns "it's more expensive" into a real tradeoff instead of a complaint about a bigger bill.
CCost asymmetry. Which error is cheap, and which is hidden?
A few extra cents of tokens is the cheap, visible error, it shows up on the invoice every single time and nobody's surprised by it. A hallucinated or missing citation is the hidden, expensive one, it costs nothing on the bill and costs a researcher real time, or real credibility, before anyone even knows something went wrong. Optimize spend against the hidden one.
This is the hardest step, and the one most answers skip. If both sides of a tradeoff cost the same, the asymmetry hasn't actually been found yet.
KKill criteria. What evidence would flip the pick?
A corpus small and static enough to fit inside one prompt, roughly under twenty papers at Citelume's typical abstract length, and updated rarely. Below that size, stuffing everything into a single call is genuinely cheaper and simpler, and the four extra RAG lines cost more than the grounding they buy.
A pick that can't say what would change it isn't really a pick, it's just a preference dressed up as a decision.
The kill line: when does stuffing the whole corpus beat retrieval on cost alone
$0.10 $0.05 0 0 10 20 30 40 50 papers crossover, about 17 papers
Stuff the whole corpus into one callRAG, roughly flat regardless of corpus size
Under about seventeen papers, one stuffed call is the cheaper option. Past it, stuffing keeps climbing while RAG's cost per query barely moves. Citelume's real corpus runs in the hundreds of thousands of papers, far to the right of this whole chart.

Three things worth stating directly, since this is where the real judgment sits. The alternative Boaz's team considered and dropped was cutting reranking out entirely, feeding the top fifteen raw search results straight into generation. It would have saved the whole six tenths of a cent reranking line, about twenty four hundred dollars a month at Citelume's volume. It lost because tested against the same fifty question golden set, recall fell to about sixty eight papers out of a hundred, worse than even the narrowed fan-out that caused the near miss. The AI-specific failure worth naming by name is silent retrieval drift: recall quietly falling as a fixed, cost-driven default stays put while the corpus keeps growing and getting more crowded within specific topics, with no error thrown and no alert raised, because the system still answers confidently with whatever it did find. The guardrail is the golden set itself, checked automatically before any change to fan-out, the reranker, or the embedding model ships, with a hard recall floor that blocks a change that doesn't clear it. That guardrail isn't free, running it costs a few engineer hours a quarter, small next to the near miss it exists to catch. And the tradeoff being accepted openly: RAG costs about four times a single call per query and adds roughly seven hundred to nine hundred milliseconds of retrieval and reranking time on top of generation, in exchange for answers grounded in real, checkable papers instead of the model's own memory. The bar Citelume holds itself to was never a hundred percent recall, no retrieval system promises that. It's recall at eighty eight percent or better on the golden set, checked before any pipeline change ships, not a number that gets to slide because the topics people happened to test that week looked fine.

And if you want to be sure it really works, try it somewhere else

Same four letters, a wind farm's maintenance floor instead of a university library, and this time the dominant cost line isn't reranking at all.

Trellis is a field assistant Corravin Energy built for turbine technicians. A technician asks about a fault code or a torque spec, and Trellis searches the manufacturer manuals for that exact turbine model and answers with the actual page cited. Anneka Selassie is the finance partner who signed off on what it costs to run.

The build-up: Trellis handles far fewer queries than Citelume, a few hundred a day across Corravin's technicians, so its per-query lines are small, embedding and retrieval together cost under a tenth of a cent, reranking about half a cent, and the bigger generation call about two cents. The number that dominates here is index upkeep, not reranking. Manufacturers revise turbine manuals several times a year, and every revision means re-embedding the changed sections before a technician can trust the answer.

The decision Anneka would take back Budgeting Trellis's launch as "add embeddings, cheap," with no separate line for manual revisions, on the assumption that manuals barely changed. That held for the first two turbine models Trellis supported. It broke the quarter three more models joined and two of them had manufacturer revisions land in the same month, and the reindexing budget ran out three weeks before the quarter closed.

Same rank as before, different lever: for Citelume, reranking's fan-out was the line quietly cut under pressure. For Trellis, it's how often the real world underneath the product changes, a manufacturer's revision schedule, not the software team's own release calendar. When reindexing ran out of budget, Trellis kept answering from the old manual for three weeks. A torque spec question would have returned the outdated number with the same confident tone as a current one, and nobody would have known without checking the physical manual by hand.

Swap the trigger and it still runs.
Speed: an interviewer caps you at ninety seconds. Skip straight to it: a single call is one cost line, RAG is five, price them separately, and spend to protect against the hidden error, not the visible one.
Cost: there's no budget this quarter for both a wider reranking fan-out and a faster reindex cadence. The reindex cadence wins for Trellis specifically, because a stale torque spec is a safety issue, not just a missed citation.
The model got better, for real: say Citelume's underlying model gets a bigger context window next year. That's not proof retrieval stops paying for itself, since Fenbrook's corpus is still far larger than any window could hold, and the reranking and upkeep lines exist independently of how big the model's context gets.

Where people run it wrong.
They price a RAG pipeline as the single call's token cost times some rough multiplier, and never separately name reranking or index upkeep at all.
They cut a retrieval default under budget pressure and never write down a plan to recheck it once the corpus changes shape.
They treat "the corpus is big" as reason enough to build a full pipeline, without checking whether a much smaller, static slice of it could have just been stuffed into one call.

How to use it live. Say the real question out loud before quoting a number: "before I give you one figure, is this asking what the extra tokens cost, or what it costs to keep the answers actually grounded." That buys a beat to think instead of repeating the doubled number that got written down on launch day.

Flashcards (tap any card to flip it)

1 · THE FRAMEWORK
What framework is this, and what's its one job?
Tap to flip
ANSWER
PICK: commit to a position, then show the asymmetry. Built for tradeoff questions, not a story about one person's habit.
2 · THE PERSON
Who is this answer about?
Tap to flip
ANSWER
Boaz Solari, the engineer who owns Citelume's cost budget at Fenbrook Research. Built its retrieval budget himself the month it launched.
3 · THE MISSED LINES
What two cost lines did the launch forecast never separately price?
Tap to flip
ANSWER
Reranking and index upkeep. Neither one moves with token count, and together they cost more than embedding and retrieval combined.
4 · THE POSITION
What's the actual position this answer takes?
Tap to flip
ANSWER
A RAG pipeline's cost is five separate lines, not a bigger single call: embedding, retrieval, reranking, generation, and index upkeep. Price and watch every one on its own.
5 · THE OLD DECISION
What decision would Boaz take back?
Tap to flip
ANSWER
Shipping the narrowed retrieval fan-out to save money without any plan to recheck recall once the corpus kept growing. The cut itself was fair, the silence afterward wasn't.
6 · THE NUMBER
Fill in the blank: the real RAG cost came to about $___ a query, roughly ___ times the single call's $0.009.
Tap to flip
ANSWER
$0.038, and about four times. Also about twice the naive launch forecast of $0.018.
7 · THE REPLAY
Same near miss, new design, what changes?
Tap to flip
ANSWER
A golden set of fifty known-answer questions checks recall before any fan-out change ships, with an eighty eight percent floor. The narrowed window from nine months earlier would have failed that check before ever reaching production.
8 · CROSS-PRODUCT TRANSFER
Section 4 answers this same question again for a different product. Which product, and what's the dominant cost lever there?
Tap to flip
ANSWER
Trellis, a turbine manual assistant at Corravin Energy. There, index upkeep dominates, driven by how often manufacturers revise their manuals, not by reranking or query volume.

Check yourself Score: 0 / 0

Multiple choice
1. Why did Fenbrook's launch forecast of "double the token line" undercount the real cost of RAG so badly?
  • A. The model provider raised prices partway through the year.
  • B. It only accounted for a bigger generation call and left out reranking and ongoing index upkeep, neither of which tracks token count.
  • C. Citelume's query volume tripled without anyone noticing.
  • D. The corpus was migrated to a more expensive vector database.
Show hint
Look at the build-up chart in Section 1 and see which two bars are not shaped like a token cost at all.
Show answer
B. The forecast doubled the token line to about $0.018 and stopped there. Reranking and index upkeep together added another $0.012, more than the entire single call, and neither one is a token cost.
True or false
2. True or false: because Citelume's overall recall looked fine on the topics people usually tested, the narrowed retrieval fan-out was safe for less common subfields too.
  • True
  • False
Show hint
Check what the golden-set recall numbers actually showed once someone finally measured them.
Show answer
False. Recall on the fifty-question golden set had quietly fallen from about 91 percent to about 76 percent. Common topics still looked fine because the relevant papers there tend to rank high anyway. A narrower window hurts the specific, less common cases first, exactly where it's hardest to notice.
Fill in the blank
3. The single call cost about $0.009 a query. The real RAG pipeline cost about $___ a query, and the "stuff the whole corpus into one call" alternative only beats RAG on cost below about ___ papers.
Show hint
Check the crossover point marked on the kill-line chart in Section 3.
Show answer
$0.038, and 17 papers. Below roughly seventeen papers, stuffing the whole corpus into one call is cheaper. Past it, RAG's roughly flat per-query cost wins, and Citelume's real corpus runs in the hundreds of thousands.
Short answer, name the rejected alternative
4. What alternative did Boaz's team consider for cutting cost further, and why did it lose?
Show hint
Look at the paragraph right after the framework recap's four steps, where the numbers behind the rejected option are named.
Show answer
Model answer: Cutting reranking out entirely and feeding the top fifteen raw search results straight into generation. It would have saved the whole reranking line, about $2,400 a month, but tested against the golden set it dropped recall to about 68 percent, worse than the narrowed fan-out that caused the near miss, so it was rejected.
Short answer, apply it yourself
5. Pick an AI product you use that searches or looks something up before answering. Name one cost line it probably has that a plain chatbot wouldn't, and how you'd check if it's being watched.
Show hint
Think of a product whose answers depend on documents that change over time, a price list, a policy, a product catalog.
Show answer
Model answer: A shopping assistant that answers questions about a store's current return policy likely has to re-index that policy every time it changes. That upkeep cost is invisible in a per-question price estimate. I'd ask how often the underlying policy documents change, and whether anyone checks that the assistant's answer still matches the current policy after each change, not just after launch.
Multiple choice
6. Corravin's Trellis and Fenbrook's Citelume both run RAG pipelines, but a different cost line dominates each one. Why?
  • A. Trellis handles more queries per day than Citelume, so its generation line dominates instead.
  • B. Trellis's documents, manufacturer manuals, change on the manufacturer's own revision schedule, so index upkeep dominates there instead of reranking.
  • C. Trellis doesn't use reranking at all, so its cost structure has only four lines instead of five.
  • D. Wind turbines require a more expensive embedding model than academic papers do.
Show hint
Look at what Anneka's decision she'd take back was actually about, in Section 4.
Show answer
B. Trellis's dominant cost lever is how often the real world underneath it changes, manufacturer manual revisions, not query volume or reranking. That's a genuinely different lever from Citelume's, where reranking's fan-out was the line that got quietly cut.
Before you close the answer
Why this works
Tests whether you'll price retrieval as a bigger version of a call you already understand, or actually separate out the lines that behave differently and don't move with tokens. Most candidates say "RAG costs more because of the extra context" and stop there.
Follow-up traps
"Four cents a query still sounds cheap, why does the breakdown matter if the total is small?" Response: the total being small is exactly why nobody watches it closely, and that's how reranking's fan-out got cut without anyone rechecking recall for nine months. A small total with a hidden line is still a hidden line.

"Couldn't you just monitor the total bill instead of tracking five separate lines?" Response: no, because the total barely moved when recall quietly dropped, the cost of the cut and the cost of the miss show up in completely different places, one on an invoice and one in a researcher's citation list.
If pressed
Embeddings aren't portable across model versions. Upgrading Citelume's embedding model means re-embedding all two and a half million chunks in the index at once, a real, one-time cost that sits outside all five recurring lines, budgeted only when an upgrade is actually planned rather than folded into the monthly number.
From U2xAI Academy

From answering questions to owning outcomes.

A live workshop where you ship a working AI agent, defend a launch decision, and walk away with a portfolio recruiters can't wave off, not just more questions to study.

  • A live AI agent you actually shipped
  • A launch decision you can defend under pressure
  • An interview-ready portfolio, not more flashcards
Know more