Mercury: Agentic AI Platform for LLM Powered Recommendation Experiences at eBay

Nazmul Chowdhury, Jonathan Galsurkar, Minnie Li, Yuri M. Brovman11 Apr 2025

Problem

eBay has over two billion live listings and hundreds of millions of customers. The recommendations team wants LLMs to add world knowledge to its recommender. Running LLMs for every user is costly and slow. LLM output is free text, while the recommender must return live listings from an inventory the model has never seen. Without a shared platform, every team would rebuild the same prompts, retrieval and safety pieces.

Example from the article: for the user interest "Star Wars Memorabilia" the LLM returns product names such as "Star Wars The Black Series Action Figure" and "Funko Pops", which the system turns into real eBay listings.

Solution in brief

Mercury is an internal framework in which every LLM task is an "agent" with a fixed input and output contract. Agents run on a queue-based near-real-time platform, read context through RAG, and a Listing Matching Engine maps the generated queries to live listings through exact and embedding retrieval, filtering and personalized ranking.

Questions this case answers
  • How to map free-text output of a generative model onto the items of a large, constantly changing catalog with low latency
  • How to serve generative-model features at scale when demand peaks make GPU and reserved external capacity poorly utilized
  • How to build LLM-powered recommendations that scale to hundreds of millions of users and billions of listings?
  • How to turn free-text LLM output into live items from a constantly changing inventory?

Tools and methods

  • Mercury agents, chains and graphs — LLM tasks as reusable components
  • RAG — adds listing, user, web and partner data to the LLM context
  • Near-real-time queue execution — smooths load, retries failures
  • Listing Matching Engine — turns LLM text into ranked live listings
  • Exact-match search and embedding KNN — two retrieval routes for each generated query
  • Llama, Mistral, BERT-based models — self-hosted LLMs and semantic search models
Continue reading — it's free

Google or a one-time email code. No password.