Semantic Core
Term

Embeddings

Also: embeddings, vector representations

A numeric representation of a phrase's meaning, used to group queries by closeness of meaning.

Each query is turned into a vector of numbers that encodes meaning. Phrases close in meaning end up near each other, even when they share no words.

Embeddings power the most accurate semantic clustering, finer than matching by words.

How it works

A special model reads a phrase and outputs a list of numbers, a vector. It usually holds hundreds or thousands of numbers. No single number means anything on its own. The whole vector encodes the meaning.

Closeness of two phrases is measured as the angle between their vectors, called cosine similarity. The closer the value is to one, the closer the meaning.

The model learns from a huge body of text and remembers which words appear in similar surroundings. That is why "smartphone" and "phone" end up close, even though they are spelled differently. Here is how it looks on pairs of queries:

  • "buy laptop for work" and "office laptop price": high similarity with almost no shared words.
  • "house key" and "keywords for a website": low similarity despite the shared root.

Embeddings in clustering

  1. Each query in the core is turned into a vector.
  2. An algorithm groups vectors that lie close to each other.
  3. Each group is named after its highest-volume or most central query.
  4. A person checks disputed groups and moves individual phrases.

Clustering by top results works the other way: it compares search results, and two queries land in one group when several URLs in their top 10 match. You can try grouping in the query clustering tool.

How it differs from clustering by top results

  • Embeddings see meaning and need no search results, so they are cheaper and faster on large lists.
  • The top shows how the search engine itself groups queries. If it puts "buy" and "how to choose" on different pages, embeddings may miss that.
  • Commercial sites often combine both: embeddings give rough groups, the top checks whether one page can rank for a group.

Other uses for embeddings

  • Finding duplicates. "late night pizza delivery" and "24 hour pizza delivery" sit at almost the same point, so one page covers both.
  • Internal linking. Compare the vectors of your pages to see which articles are close in topic and where a link fits.
  • Finding gaps. Core queries with no site page near them point to content you have not created yet.

In every case embeddings give a hint, not a decision. You check the result against search results and common sense.

Questions

Do embeddings work in any language?
Modern multilingual models handle English and many other languages. They handle slang and narrow niche terms worse, so check disputed groups by eye.
Should you clean the core before computing embeddings?
Yes. Junk and off-target phrases also get vectors and create extra groups. Cleaning the core comes first, clustering second.
Why do different tools group the same queries differently?
They use different embedding models and different closeness thresholds. The lower the threshold, the bigger the groups. The result depends on settings, so check disputed groups against search results.

Related terms