Skip to main content
Talk to an expert
Issue 049BriefingAI for CommerceRef 062

LLM-powered site search: when re-ranking earns its place in the budget

LLM re-ranking is a powerful tool for site search, but it is an optimisation, not a foundation. For B2B firms, it justifies its considerable cost and latency only after conventional search is flawless and the business case targets measurable gains on long-tail, ambiguous queries.

The Unspoken Prerequisite: Solid Foundations

The problem is that LLMs amplify, they do not create. They cannot re-rank an empty list of results. If your product data is incomplete, your indexing is broken, or your core search configuration is poor, an LLM will be of no use. It is a refinement layer, not a substitute for fundamental digital merchandising. According to Gartner's analysis in their Magic Quadrant for Digital Commerce, data governance and PIM are consistently identified as foundational capabilities. Without clean, structured, and comprehensive product data, any advanced search feature is built on sand.

Before considering LLM re-ranking, a platform's search function must be fundamentally sound. This means product data must be rich with attributes, specifications, and application data. The search engine itself, whether it is Solr, Elasticsearch, or a SaaS provider, needs to be correctly configured. This includes extensive synonym lists (lorry vs. truck), well-considered attribute weighting (brand name vs. description), and robust typo tolerance. Analytics must be in place to even identify which queries are failing and why. We find in many of our rescue projects that these basics have been neglected for years. Getting them right often delivers 80% of the desired improvement for a fraction of the cost and complexity of an AI implementation.

We have seen businesses ask for AI to solve their search problems when their 'zero results' page is triggered on 30% of queries. This is not a ranking problem; it is an indexing or data problem. The search engine cannot find the products. An LLM cannot rank what is not found. Investing in re-ranking in this scenario is like fitting a precision-engineered spoiler to a car with flat tyres. The investment is wasted, the core problem remains unsolved, and the business loses faith in the technology's potential.

"Before budgeting for LLM re-ranking, ask if you have earned the right. A clean data model and a perfectly tuned lexical search are not optional prerequisites; they are the entire foundation."

Pinpointing the Business Case in B2B

LLM re-ranking earns its place in the budget when the foundations are solid and the business case is specific. It is particularly relevant for B2B distributors and manufacturers with large, complex catalogues. For builders merchants with catalogues exceeding 200,000 SKUs, the probability of a simple keyword search returning the optimal product on the first page is low. The sheer density of similar products, from different manufacturers, with minor variations in specification, makes for a noisy search environment. This is where semantic refinement provides a clear return.

The business case crystallises around query types that foil traditional search. Trade customers use jargon, slang, and part numbers ('M12 coach screw', '4-inch block', 'dumpy bag') that can be difficult to manage with synonym lists alone. More importantly, they search by 'job-to-be-done'. A query like 'everything for fixing plasterboard to a stud wall' is not a keyword search; it is a request for a curated list of products. A well-implemented LLM, trained on application data, can interpret this intent and rank fixings, board, tape, and jointing compound appropriately. This moves search from a simple lookup tool to a consultative one.

The starting point for a business case is your own search analytics. Isolate the queries that are three or more words long, often called 'long-tail' queries. Now look at their performance: what is their exit rate? What is the click-through rate on the first three results? If this segment represents a material portion of your searches but shows poor engagement, you have a candidate for improvement. A modest conversion lift of 2-3% on just these long-tail queries can translate into significant new revenue, providing a defensible ROI for an AI for commerce project.

The Real-World Costs: Latency and Spend

A senior-led approach requires a sober assessment of costs, which for LLMs are twofold: performance latency and operational spend. Every API call to a re-ranking model adds a delay to the search result page. Based on iWeb's own internal benchmarks, this latency can range from 150ms to well over 600ms, depending on the model's size, the hosting provider, and network conditions. This is a material slowdown that will be felt by the user and measured by Google's Core Web Vitals. For a B2B user under pressure, a slow search is an abandoned search.

This latency can be managed, but it requires careful architecture. You do not need to re-rank every simple, high-performance query. Logic can be implemented to trigger the LLM call only for specific query patterns, like those over a certain length or those that have historically performed poorly. Results for common complex queries can be aggressively cached. This adds complexity to the system but is essential to balance sophistication with speed. The goal is to apply the expensive refinement only where it adds measurable value, protecting the performance of the rest of the site.

Finally, there is the direct financial cost. Unlike a one-time software license, LLM re-ranking is a consumption-based service. Providers charge per API call, per 1,000 queries, or per 'token' processed. For a site handling millions of searches a month, this can quickly become a five-figure monthly operational expense. This cost must be continuously justified by the attributable revenue gain measured through rigorous A/B testing. The decision to implement re-ranking is not just a technical one; it is a financial model that must be built, monitored, and defended.

Written by
Heddwyn Coombs, Creative and Digital Director at iWeb
Heddwyn Coombs
Creative and Digital Director
29 years at iWeb

Heddwyn co-founded iWeb and leads creative and digital direction across the agency. Adobe Commerce architect since the Magento 1 era, he writes the strategy notes on platform choice, headless, agentic checkout, AI for commerce and the trade-offs leadership teams hit when modern tooling meets operational reality. Opinionated about data structure, design systems and catalogue size, cautious about unnecessary frontend complexity, and focused on work that stays commercially manageable over time.

The briefing · regular

A regular round-up of new notes.
No content marketing.

Sent on the last Thursday of the month. The most useful five notes from the previous four weeks, written by the operators, architects, engineers and commercial leads running the work.
Next step

Take this conversation private.

If this note matches the brief on your desk, the version we'd write for your platform, sector and trade-account model is the work itself. Send a short brief and a senior lead replies inside 48 hours.
Talk to an expertBack to The Record →