Problem
Search is built to find things a user already knows by name. Spotify users also type exploratory requests such as "new indie rock releases" or "artists similar to X". Text and semantic matching handle these poorly, and the recommenders that could answer them sit outside search. A full LLM agent that calls tools one after another is too slow and expensive for millions of users.
Example from the article: for "latest albums by Lady Gaga", the user may want the newest album, a confirmation that one is out, or a recent single described as an "album".
Solution in brief
A small LLM reads only the query and picks a predefined route: one tool call or several parallel calls to search and recommendation APIs. It also fills in the call parameters, which doubles as query rewriting. Parallel results fill separate sections of the results page. The router is trained on routes from a large teacher model, filtered by an LLM judge.
Questions this case answers
- How to send a free-text request to the right one of several retrieval and recommendation services, with extracted parameters, within a production latency budget
- How to distill a large LLM's decisions into a small, cheap model when an LLM judge is the quality filter for the large model's outputs
- How to handle exploratory search queries (\"new indie rock releases\", \"artists similar to X\") that plain text matching answers badly?
- How to route each search query to the right search or recommendation service without a stack of intent classifiers?
Tools and methods
- Parallel Fusion Router (PFR) — LLM router choosing one or several parallel tool calls
- Pre-fusion routes — multi-call bundles fixed in advance, so the LLM outputs only parameters
- Rejection-sampling fine-tuning (RFT) — trains the small router on judge-approved teacher routes
- LLM-as-a-judge — offline scoring of relevance, diversity and freshness; filters training data
- Query-only router cache — keeps the user profile out of the router input to raise cache hits
Google or a one-time email code. No password.