
ByteByteGo · 12 min readBuilding with LLMs
How Pinterest Built LLM-Powered Search in 20 Languages With Minimal Training
Pinterest built a multilingual LLM‑powered relevance model by fine‑tuning a cross‑encoder on richly annotated Pin data, then distilled it into a lightweight scorer for live search. The approach combines textual signals from titles, captions, boards, and query tokens to achieve fast, accurate relevance ranking across 20 languages.
- Cross‑encoder processes query and Pin text jointly, improving relevance judgment over separate embeddings
- Synthetic image captions and board titles enrich textual representation of visual content
- A large teacher model is fine‑tuned then distilled to a small, low‑latency model for production