Journals / Case study

How Yelp turned reviews and photos into vectors that every team can reuse, and what it never measured

Most product teams that need text or image features train their own, again and again. Yelp's April 2023 engineering post describes the other route, one team building vectors for reviews, businesses and photos that everyone else reads. The striking part is how little was custom. Both models came off the shelf, and the in-house attempt lost. The post shows offline tables and no product result, and Yelp's 2026 posts show keyword search still leading.

30 NOV 202611 min readEmbeddings · Search and recommendations · Computer vision · Machine learning operations Based on: Yelp, 2023
Our diagram titled One layer, many readers, showing Yelp's 2023 shared embedding layer in three bands. Inputs: review text, user photos. Models, both off the shelf: the Universal Sentence Encoder turns each review into a vector, CLIP turns each photo into a vector with no Yelp training, and a business vector is the average of the vectors of its 50 most recent reviews. One store of hundreds of millions of embeddings is read by many teams for tagging, photo classes, similar businesses and recommendations. A note says the post reports offline accuracy only, with no A/B test or product metric.
Diagram: MORARI. Source: Yelp

Every product team at a review site wants the same thing from its data. The search team wants to know that "cozy ramen spot" and "warm noodle place" mean nearly the same. The photo team wants to know which pictures show a menu. The recommendations team wants businesses that feel alike. Left alone, each team trains its own features from the same reviews and photos, and pays for it three times.

Yelp described the other route in Yelp Content As Embeddings, a post on its engineering blog by Fanny Salvail-Berard, a machine learning engineer, dated April 20, 2023. We read it on Yelp's own site. The page carries Yelp's copyright and no open licence, and most of its twelve images are other people's diagrams or Yelp users' photos, so the diagrams here are our own except for one Yelp chart. Every result below is Yelp's own.

The idea: compute once, let everyone read

An embedding is a list of numbers that stands for a piece of content, so that similar things get similar numbers. The post's case for one shared set is practical: "Having embeddings that encapsulate semantic information readily available for the massive amounts of data Yelp owns makes implementing new deep learning models easier, since it can serve as an excellent baseline for any model input." The same vectors had to serve very different jobs: "tagging, information extraction, sentiment analysis and ranking."

Reviews: the in-house model lost

For review text Yelp took Google's Universal Sentence Encoder from TensorFlow Hub, the deep averaging network version: "The deep averaging network (DAN) version of USE takes words and bigram embeddings and then averages them together."

The team then tried to beat it. They fine-tuned a Yelp version on five tasks built from their own data, such as predicting a review's rating and category, and tested both on four others, such as classifying photo captions and menu items. The result: "The model evaluation made on the Yelp domain showed that the ready-to-use model performed better than or as well as the Yelp pre-trained encoder for all tasks." Yelp's own explanation is honest about doubt: "These results happened because either the Yelp domain touches many generic subjects in the USE model or our experiments lacked task diversity to gain an edge." So: "Based on these results, we decided to keep the off-the-shelf USE pre-trained model." No per-task numbers are given.

The check that it works is a picture. Forty-four reviews from four kinds of business, restaurants, dry cleaners, groomers and plastic surgeons, compared pair by pair.

Yelp's heatmap of cosine similarity between 44 review embeddings from the Universal Sentence Encoder, review IDs on both axes. Four lighter square blocks along the diagonal show that reviews of the same business type sit closer together than reviews of different types.
Reviews of the same kind of business land near each other: the four light squares. A sanity check, not a measurement. Image: Yelp

Businesses: the average of 50 reviews

A business vector is about as simple as it gets: "We select the 50 most recent reviews and average their vector embeddings to create our first business embedding representation." Photos and business details are not in it yet. Those vectors then produce lists of the nearest neighbours: "Business embeddings help generate a top-k similarity list to relate businesses to other businesses, users to businesses and users to users based on their matching business interaction history." That feeds recommendations of the people who liked this also liked kind, which Yelp had written about in 2022, when the same encoder was used for review features.

Photos: CLIP with no training at all

For photos Yelp used OpenAI's CLIP, which embeds images and text in the same space. That means a photo class can be a sentence. "Menu" becomes "A photo of a menu", and a new class needs no new training set. Yelp used it untouched: "We tested the CLIP model without any fine-tuning applied to the pre-trained model found on HuggingFace."

The test was against three ResNet50 classifiers already in production, trained on Yelp photos, with the label wording tuned by hand. The results are mixed, and the post prints them in full. On the 5-way restaurant classifier, CLIP matched production on drinks and beat it on precision for outside shots, 96% against 84.3%, but on menus its precision was 51% against 95%, even though it found more of them (recall 94% against 80.3%). On the 27-dish food classifier it lost on most dishes, steak recall 0.39 against 0.84 for example. On Home Services photos, a 70% confidence threshold raised the precision for decks and railings from 20% to 35%, still low. Yelp's conclusion is careful: "Results for the 5-way restaurant, food and nightlife classifier show that CLIP has potential and that label engineering could beat a domain-trained deep learning model."

The failure notes are useful. People standing in front of a room confused it: "People are often in the foreground of interior and exterior photos." The post also points to OpenAI's typographic attack, where a paper label reading "pizza" on an apple changes CLIP's answer. On a review site any photo can carry a sign with words on it.

Storage and the bill

The serving part gets two sentences. The team "took the opportunity to review and upgrade our storing system for the vector representation we are responsible for", regenerated vectors for all their data, and ended with this: "This project means that Yelp now owns a database with hundreds of millions of embeddings." What comes next is also stated: "The next step will be to add the photo embeddings as well."

What the post does not show

  • No product result. No A/B test, no click, booking or revenue change. Nothing was replaced: the ResNet50 classifiers stayed in production.
  • No sizes. No vector dimension, number of reviews or photos, embedding count beyond "hundreds of millions", latency, cost or refresh schedule.
  • No list of users. "Many teams" is not broken down into which products read the layer.
  • No language detail. The models are English-first, and the post never mentions language.
  • Small inconsistencies. The confusion-matrix image appears to swap the drink and food precision against the post's own table, and the heatmap legend assigns review 33 to two groups.

What has changed since

Yelp's search engine now does vector search. Yelp's open-source search engine Nrtsearch reached version 1.0.0 in May 2025, and with it: "Nrtsearch leverages this api to provide kNN vector search for float and byte vector data with up to 4096 elements."

Keyword search still leads. In March 2026 Yelp described Biz Ask Anything, an LLM that answers questions about one business from its reviews, photos and menu. Retrieval was mostly old-fashioned: "For relevant content retrieval, we rely mostly on keyword search except for photo retrieval, where we leverage a combination of embedding similarity and photo-caption text." And: "We treat them as complementary and are investing in embeddings as a followup." Three years after the shared layer, in the product where it should matter most, embeddings are still the follow-up.

Teams still build their own. Yelp's support chatbot post from May 2026 says: "We use Text-embedding-ada-002 to construct our vectorstore." It is small, "around 8 megabytes", and separate from the content layer. No later Yelp post describes the 2023 layer being extended or measured, so we cannot say whether it still runs as described.

The content became a product. In its Q3 2026 shareholder letter, Yelp reports "robust demand for our data licensing products, including from our partnerships with OpenAI and Meta", and says it "recently began exploring advanced AI techniques, including semantic IDs, to surface relevant advertisers in a carousel." The letter does not define semantic IDs. The reviews and photos behind the vectors are now licensed to model makers too.

Others wrote down the pattern. Wolt's embeddings framework post from February 2026 reports that de-duplicating inputs "reduced the total number of embeddings we needed to compute by up to 10x, significantly lowering both cost and processing time", with a rule we like: "Platform no, abstractions yes". LinkedIn's post embeddings paper says they "have been battle-tested in production at LinkedIn for over two years, consistently powering multiple products." Both are the companies' own claims.

Vector search became ordinary Postgres. The pgvector changelog added an HNSW index in version 0.5.0 (August 2023), 16-bit halfvec vectors in 0.7.0 (April 2024) and iterative index scans in 0.8.0 (October 2024). A team no longer needs a separate vector database at listing-site scale.

The models went multilingual. The CLIP model card says "its use should be limited to English language use cases." Newer open models such as multilingual-e5, BGE-M3 and SigLIP 2 cover many languages, though the e5 card warns that "low-resource languages may see performance degradation." None of these cards proves Indonesian review quality.

Why it matters for your business

Indonesian listings are written in a mix of Indonesian, English, regional languages and slang, often in one sentence. An English-first encoder like Yelp's 2023 choice will miss that. Test sets exist: IndoNLU and NusaX, the latter covering Indonesian, English and ten local languages. Neither is a search test, so a team still needs a few hundred of its own reviews labelled by hand.

We looked for official data on where Indonesians read reviews of local businesses and found none. The figures that circulate are surveys of app use or of US consumers. Your own search logs will tell you more.

The legal point is the one Yelp's post never had to face. Under UU 27/2022 (JDIH Komdigi), processing includes analysis and storage, and Article 28 says: "Pengendali Data Pribadi wajib melakukan pemrosesan Data Pribadi sesuai dengan tujuan pemrosesan Data Pribadi." A layer that every team reads is exactly where data collected for one purpose gets used for another. Users also have rights to correction and erasure, so when a review is deleted its vector and every average built from it must go too. Article 34 requires an impact assessment "dalam hal pemrosesan Data Pribadi memiliki potensi risiko tinggi terhadap Subjek Data Pribadi", and large-scale processing and combining data sets are on the list. Whether a vector is personal data in itself is not settled in the text. We are engineers, not lawyers.

How we would build it today

Our diagram titled One table, then teams, our suggestion for an Indonesian listings platform on Postgres, in three bands. Store: one embeddings table with object type, object id, model and version, vector and date, plus per-review vectors kept so a deleted review can be removed and the listing average rebuilt. Models chosen by test: a multilingual text model and a multilingual image model, picked on 200 to 300 of our own Indonesian and mixed reviews, never face recognition on user photos. Read: hybrid search where keyword and vector results are merged, similar listings, and photo tags; each reading team writes down its purpose. A note says it starts with one task and a keyword baseline.
Yelp's layer without its blind spots: versioned, deletable, tested on our own language, and measured against keyword search. Diagram: MORARI. Source: Yelp

Picture a property, directory or marketplace platform in Indonesia with a few hundred thousand listings, reviews in Indonesian and English, user photos, and Postgres already running.

  1. Start with one table. Object type, object id, model name, model version, vector, date. Add pgvector with an HNSW index and halfvec storage. At this size a separate vector database is cost without benefit.
  2. Pick the model on your own reviews. Label 200 to 300 real review pairs as similar or not, including slang and mixed language, and compare two or three multilingual models. Choose the winner, not the most famous.
  3. Copy Yelp's business vector, keep the parts. Average the review vectors per listing, but store each review's vector so a deleted review can be removed and the average rebuilt.
  4. Photos for tags, not faces. A multilingual image model for "photo of a kitchen" or "photo of a pool" style tags, checked against a few hundred hand labels. No face models on user photos.
  5. Version everything. Never mix model versions in one index. Re-embed in the background, then switch. De-duplicate identical text first.
  6. Keep keyword search. Place names, brand names and slang need exact matches. Merge keyword and vector results, as Yelp still does in 2026.
  7. Write down who reads it. Each team that uses the layer records its purpose, and the impact assessment is done before launch.
  8. Measure what Yelp did not. Pick one feature, such as similar listings, keep the keyword version as the baseline, and compare with human ratings and one online metric.

For one engineer, the table, the model test and a similar-listings feature take about three to four weeks. Embedding a few hundred thousand listings on a rented GPU costs little, and a CPU works if you can wait overnight. The next level, once the first feature beats its baseline, is the hybrid search box itself: one query running keyword and vector side by side, tuned on your own search logs.