Problem
A music catalog has tens of millions of tracks, and users increasingly search by intent: "something slow and a little sad for working on a Sunday evening". Such queries name no artist, title or genre, and most tracks carry no matching words in metadata. At Zvuk, keyword search lost on them. LLM playlist generation hallucinated tracks, favored famous artists and cost an LLM run per query. Faceted search was capped by its tag schema.
Example from the article: for "indie tracks, the feeling of a late-night drive" a facet system can filter genre = indie, but has no facet for "late-night drive".
Solution in brief
Each track becomes a JSON-like text descriptor with an LLM-written "about" field. An LLM-based embedder (gte-Qwen2-7B-instruct) is fine-tuned on GPT-generated queries plus expert-labeled pairs. A 14B cross-encoder then teaches it: its continuous scores are distilled into the embedder with the CoSENT loss, lifting MAP from 81.5% to 86.9%.
Questions this case answers
- How to retrieve catalog items for free-form intent queries when metadata facets and keyword matching cannot express the intent
- How to train a dense retriever for a large catalog when query-item relevance labels exist only for a small part of it
- How to keep most of a slow pairwise reranker's accuracy while serving only a single embedding lookup per query
- How to find tracks for mood and situation queries like \"something upbeat for a morning run\" that name no artist, title or genre?
Tools and methods
- gte-Qwen2-7B-instruct — base embedder, fine-tuned with InfoNCE, then with CoSENT
- Qwen-2.5-14B-Instruct — cross-encoder teacher answering Yes/No per (query, track) pair
- GPT-4.1 — generates positive and hard-negative queries
- VGGish and Whisper — extract genre, mood, tempo, instruments, vocals and language from audio
- Expert labeling — three-expert majority vote on top-5 candidates per query
Google or a one-time email code. No password.
