Design Visual Search
Someone is looking at a photo of a living room they like. They don't have words for the lamp in the corner, they don't know the brand, and a text search box is useless to them because they can't describe what they want. So they draw a box around the lamp instead, and the product's job is to return Pins of lamps that look like that one. That is visual search, and it is the system that no other company's interview prepares you for. Pinterest runs more than 600 million visual searches a month across three surfaces. Flashlight searches from a region you crop inside an existing Pin. Lens searches from a live camera photo of something in the real world. Shop-the-Look finds buyable products inside a scene.
Most people hear "image search" and picture Google Images, so they reach for an inverted index of tags and captions. Cut that instinct. The query here is pixels, so there is no text to look up. The spine is different. Turn the query image into a vector that encodes what it looks like. Turn every Pin image in the corpus into the same kind of vector ahead of time. Then find the corpus vectors nearest the query's. Image in, embedding out, nearest-neighbor search over billions of embeddings, then a re-rank. Lead with that and everything else, the camera, the crop, the shoppable products, is a variation on the same pipeline.
- 1 diagram
- 5 sections
- about 45 min
Premium lessonPinterest interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · Cancel anytime
Pinterest interview guideKnow what Pinterest asks before you walk in.
14 coding · 5 system design · 16 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.