- Assembling a GenAI stack from the leaderboard winner at every layer is a solved problem. Iterating it to production quality is not, and the stall now shows up in measured abandonment rates, not just anecdotes.
- The market is horizontal: every vendor optimizes and benchmarks within its own layer. The number your product is judged by is vertical. Nobody in the stack is paid when it moves, and the money-saving options sit outside every vendor's interest.
- Machine learning has run this experiment before: end-to-end systems beat pipelines of separately optimized stages, because the headroom lives in the interactions between stages.
- The fix is a loop, not a purchase: evaluate every layer on your data, fine-tune the components that move your number (open or closed), keep only the updates that survive held-out validation, and own the assets that result.
The pilot went well. The demo impressed everyone who saw it, the components came from the top of their leaderboards, and the plan said production within a quarter. Two quarters later, accuracy sits a few points below the bar the product needs, the latency budget is spent, and every fix that helps one class of queries quietly breaks another.
Ask which layer is responsible (chunking, embedding, index, reranker, LLM, prompts) and the honest answer is: nobody can say. It is the most consistent complaint in production GenAI, and the workflow it produces goes by the practitioners' own names, "trial and error" and "vibe checks": tuning by superstition, one knob at a time, because nothing in the stack can attribute a failure to a layer.1
The stall is structural: not a talent gap, not a model gap, but a consequence of how the GenAI market is organized and what assembling a stack from other people's components leaves out. It runs through a principle machine learning has proven before, and ends somewhere concrete: what enterprises should actually be buying.
A lesson machine learning keeps teaching
Speech recognition spent decades as a pipeline: an acoustic model, a pronunciation model, a language model, each owned by its own subcommunity and tuned against its own intermediate metric. End-to-end neural systems collapsed the pipeline into one optimization against the only metric users feel, and won. Computer vision repeated the pattern when learned features displaced hand-engineered ones. Translation repeated it when phrase tables gave way to a single network trained directly on translation quality.
Note what the pattern is not: the pipeline stages were not bad. Each was excellent against its own metric. The problem is that a stage-local metric is a proxy, and every seam between separately optimized stages strands value: the error one stage could have absorbed for another, the redundancy two stages could have exploited together, the compensation nobody performs because nobody owns both sides of the seam.
The same logic drives vertical integration outside ML. Apple did not build its laptops around the best merchant chip; it co-designed the silicon with the operating system against one number, performance per watt, and produced a gap that competitors buying from the same component catalog could not close.
A GenAI stack (chunker, embeddings, index, sparse signal, reranker, LLM, prompts, tools) is a pipeline of separately optimized stages. GenAI is in its hand-tuned pipeline era.
…you already believe the principle and want evidence: jump to what end-to-end tuning does to the leaderboard gap.
Your number is vertical. The market is horizontal.
Look at how the stack is sold. Embedding models are ranked against embedding models on public retrieval benchmarks. Vector databases compete against vector databases on recall-per-dollar curves. Rerankers are benchmarked against rerankers, models against models on frontier evals, agent frameworks against agent frameworks in feature tables. Every one of these comparisons is horizontal: a layer, measured inside the layer.
The number your product is judged by is not horizontal. Task accuracy under a latency budget, hallucination rate under an accuracy floor, cost per resolved query: each cuts vertically through every layer at once, and depends most of all on the interactions between layers, which is precisely what no horizontal benchmark measures.
A vertical number in a horizontal market: real to you, invisible to everyone selling to you.
The figure's numbers are illustrative; the ones that follow are not. In one retrieval engagement, tuning the stack this way held the all-premium build's accuracy at 9× lower embedding cost and about 40% lower latency; the agent version of the same loop took tool-call accuracy from 62% to 91% (both detailed below). That mismatch leaves you with two problems, each taken up in its own section below: nobody is paid to improve the whole stack, and the assembled stack has no mechanism for learning from failure. Together, they explain most of the stall.
Nobody is paid to move your number
This requires no villains. A vendor's roadmap, pricing, and marketing follow its own margin and its own layer's benchmark; that is simply what a company is. But sit on the enterprise side of the table and notice what the structure produces: the optimizations that would save you the most tend to sit exactly where no vendor's interest points.
Storage. Vectors are stored and served at full precision, and your index bill scales with them. Binary quantization compresses the index by 32× in memory (one bit per dimension instead of thirty-two), and much of the recall it costs comes back by retrieving deeper and rescoring downstream.2 The technique is public, documented in places by the databases themselves. But capturing it is a cross-layer job: the compression happens in the index, the recall recovery in retrieval depth and reranking, and no party in your stack owns both sides of that trade, or invoices less for raising the subject.
Inference. The default is the flagship model for everything, yet practitioners who audit their traffic keep finding a large share handled just as well by models costing a tenth as much, with reported savings in the 40 to 70% range.3 In our own finance work, optimizing one tool's definition and examples closed the quality gap between model tiers on that task, and orchestration moved to the smaller model at 5× lower inference cost. No provider's interest points at that outcome; it was found by optimizing the stack against the client's number.
Benchmark transfer. The leaderboard that picked your embedding model is itself an optimization target for everyone on it, and rankings routinely fail to transfer to private corpora: practitioners report models near the top of public benchmarks landing mid-pack on their own data, and in one assessment we ran, ten of twelve newer, more expensive embedding models failed to improve a year-old tuned stack end to end.4
None of this information reaches you through the market, because the market is not structured to carry it. Navigating it takes a party whose interests run vertical: no layer to sell, nothing to gain from a larger index or a pricier model, paid against the product metric and nothing else. That is the seat VectorStackAI was built to occupy. We sell no embedding model, no database, no model, no framework. We sell your number moving.
Assembly is solved. Iteration isn't.
This is the gap the failure statistics keep pointing at.
Stitching APIs together gets you to market, and that is genuinely valuable; a v0 that ships beats an architecture that never does. What stitching does not give you is a way to improve. Good products metabolize their failures: production misses flow back into the system, the component responsible changes, and next month's product is measurably better than last month's. An assembled stack has no path for that. The failure is visible at the top (a wrong answer, a missed document, a bad tool call) while the components underneath are sealed: a closed embedding endpoint, a vendored reranker, a prompt buried in a framework, a model that updates silently under you.
The stall this produces is now measured, not anecdotal. S&P Global found 42% of enterprises abandoned most of their AI initiatives in 2025, up from 17% a year earlier;5 MIT's widely cited study puts 95% of enterprise GenAI pilots at no measurable return.6 Its diagnosis is not that the models are weak, but that the tools "don't learn, adapt, or integrate."
Adoption without iteration does not work. The learning gap is the gap.
Closing it takes machinery that, conspicuously, no layer of the horizontal market sells:
- An eval harness on your data, your queries, your judgment calls. "No ground truth" is the first thing practitioners name when asked why they cannot improve their systems.
- Attribution. When the number moves, which layer moved it: a lexical miss, a semantic miss, a rerank inversion, a wrong tool, a wrong argument.
- The ability to update any component, open or closed. LoRA where you hold the weights; trained adapter layers on top of closed embedding APIs; learned token weights on sparse retrieval; textual gradients on prompts, tool definitions, and few-shot examples, where the parameters are language.
- A retention rule. A candidate update ships only if it improves held-out and regression sets. The newest configuration is never assumed to be the best one.
That list is the whole company, stated as a loop. PreciseSearch is the loop run on retrieval stacks; AgentGrad is the loop run on agent runtimes; the long-run aim is the full capability surface, evaluation and fine-tuning for every component in the GenAI stack, whether or not its weights are yours. What follows is what the loop has done in production.
…the mechanics matter less to you than the outcome: jump to what you end up owning.
The leaderboard gap isn't yours to pay
Point the loop at a retrieval stack and the leaderboard gap stops being yours to pay. For a client's chatbot over a 26M-passage Wikipedia corpus, we replaced a flagship API embedding model with a small open model that trails it on every public ranking, fine-tuned it on the corpus, and compressed the index with a learned projection and data-driven asymmetric quantization, letting the reranker recover what compression costs. The optimized stack matched the flagship build's accuracy at 123× less index memory and roughly 33× lower embedding cost. The full experiment is documented in Component benchmarks lie. Tune the stack.
In production, the same effect became an economic result. A legal AI platform needed frontier accuracy inside real latency and cost constraints. Instead of assembling the all-premium build, the leaderboard winner at every layer, we selected candidates by how they behaved after fine-tuning, evaluated the finalists inside a production mirror with the reranker in the loop, and jointly tuned the winning stack. It reached parity with the all-premium build, with a small measured lift, at 9× lower embedding cost and about 40% lower total latency, with no GPU sparse serving at all.7 That result was possible because tuned stacks have recoverable redundancy: a distilled reranker can compensate for a weaker first stage, an index retune can recover recall lost to quantization, and learned sparse weights can catch the lexical matches a dense model misses. Those recoveries happen between layers, precisely where component benchmarks cannot see them.
The same collapse, in agents
Agents show the same collapse, and the arithmetic is brutal. A twenty-step workflow at 95% per-step reliability finishes correctly about a third of the time; compounding is why a slick five-tool demo becomes a brittle twenty-tool product, and controlled benchmarks now document the slide, with agent success degrading sharply as tools and context grow.8 Per-component quality does not add across an agent runtime. It multiplies, and multiplication is unforgiving.
The standard response is the patch log. Every production failure becomes one more rule appended to the system prompt, until the prompt is a thousand-line history of incidents nobody dares refactor and each new fix quietly breaks an older one. That is gradient descent performed by hand, one example at a time, with no batching, no validation set, and no memory of which patches still earn their place.
Run the loop instead. For the same legal platform, the product metric was tool-call argument accuracy: the right court, the right date semantics, the right document filters, across many similar search tools. The hand-written tool definitions reached 62%. The usual first fix, asking a frontier model to rewrite the definitions in one shot, reached 65%. Decomposing the runtime (thin routing above, a per-tool argument builder below), generating thousands of synthetic legal queries as a pre-deployment workload, and optimizing each builder against its labeled failures with textual gradients reached 91%, keeping an update only when held-out and regression sets improved.9
The gap between the 3-point one-shot rewrite and the 26-point optimized gain is the cleanest statement we have of the difference between editing a stack and training one. And the same loop is what absorbs change afterward: when a provider silently updates a model, re-optimization closes the regression in days rather than quarters, and moving providers becomes a re-projection of learned prompts onto the new family's format instead of a rewrite.
What you end up owning
The loop's output is not a report, and not a subscription to us. It is a stack that is yours in the concrete sense: fine-tuned embedding adapters trained on your corpus (including adapters on top of closed APIs), learned sparse weights calibrated to your vocabulary, distilled rerankers sized to your latency budget, optimized prompts, tool definitions, and skill files for your agent runtime. And it is yours in the durable sense: the eval harness, the regression sets, the attribution traces, and the training recipes come with it, deployed in your environment. The machinery keeps running after we leave.
That last part is what procurement tends to undervalue, and it is the part that compounds. A competitor can sign up for the same APIs you did, on the day you did, at the same prices. What it cannot do is replay the production failures your loop has already metabolized into the stack. A tuned stack is intellectual property in the oldest sense: an asset that appreciates with use, because every failure it absorbs makes it better at your distribution and nobody else's.
Assembly gets you to market. The loop is the moat.
How to buy, restated
Stop making component decisions with layer-local instruments. The leaderboard is a fine shortlist and a terrible verdict. The unit of evaluation is the stack. The metric is the number your product is judged by. And the thing worth paying for is not a row in anyone's ranking; it is an operating point on your own accuracy, latency, and cost frontier, together with the machinery that holds the stack there while models, corpora, and providers move underneath it.
That is what we build. Tell us the constraint (an accuracy floor, a latency budget, a cost ceiling, a hallucination rate) and we will tell you where your frontier is. Talk to us.
Notes
- The vocabulary is the practitioners' own. On attribution: most RAG that "feels wrong" has no eval set, so nobody can say whether the fault is chunking, embeddings, reranking, or the prompt (HN). On method: community consensus that chunking strategy is corpus-dependent and "trial and error is the way to go" (HN). On missing ground truth: practitioners asking how to evaluate retrieval with no labels at all (r/Rag). ↩
- The 32× is the arithmetic of float32 to one bit per dimension. Recall recovery via oversampling and rescoring is documented practice, including in vector-database vendor guides, e.g. Qdrant's quantization documentation. What the guides cannot do is tune the recovery jointly with your reranker and latency budget: that is a stack decision, not an index setting. ↩
- Practitioner report: 40–70% of model budgets spent on queries a far cheaper model handles equivalently (HN). Consistent with a16z's 2025 CIO survey, in which cost had become a dominant model-selection factor as capability differences narrowed for most tasks: How 100 Enterprise CIOs Are Building and Buying Gen AI in 2025. ↩
- Benchmark-to-corpus transfer failures are widely reported, e.g. models strong on public leaderboards but "mediocre in real world use cases" (r/LocalLLaMA), and a measured 0.89 recall@20 from one model on a private corpus while higher-ranked models sat far lower (r/LocalLLaMA). The ten-of-twelve assessment is ours: see PreciseSearch. ↩
- Measured vs. predicted, kept distinct. Measured: S&P Global Market Intelligence's 2025 survey of 1,000+ enterprises found 42% had abandoned most of their AI initiatives, up from 17% a year earlier, scrapping on average 46% of proofs-of-concept (as reported). Predicted: Gartner, July 2024 and June 2025. Survey: LangChain, State of AI Agents (~1,300 respondents; quality cited as the top barrier roughly twice as often as cost). ↩
- MIT Project NANDA, The GenAI Divide: State of AI in Business 2025 (preliminary report, July 2025): about 95% of organizations report zero measurable P&L return from enterprise GenAI investment, based on 52 executive interviews, 153 senior-leader surveys, and 300+ implementations reviewed. Note what it measured (measurable return, not whether the technology functions) and its own attribution: a learning gap, tools that do not adapt to the organizations deploying them. ↩
- Numbers as published on the PreciseSearch page: Recall@40 parity with the all-premium build with a small measured lift, roughly 1000 ms to 600 ms end to end, 9× lower embedding cost. The full field note on this engagement is forthcoming. ↩
- The compounding arithmetic is the field's own: 95% per-step reliability compounds to roughly 36% over twenty steps (Utkarsh Kanwat, Why I'm Betting Against AI Agents in 2025). The degradation with tool and context growth is measured in LangChain's single-agent benchmark, where scheduling success for one model fell to 2% once the agent handled seven or more domains. ↩
- Numbers as published on the AgentGrad page; the full field note on the tool-calling engagement is forthcoming. On provider switching costs, enterprise leaders describe prompts tuned to one provider as a reason moving models takes months: a16z, 2025. ↩
later
A decade optimizing ML across the layers it runs on: a PhD at INRIA, end-to-end ML at Apple, and hardware-aware optimization as a Principal Research Scientist at Cerebras. VectorStackAI is the synthesis: optimize the product metric by integrating across the stack, not competing within a layer.
Get the next one in your inbox.
New essays from Thesis and the rest of the blog. No cadence promises, no funnel. Just the writing.