Skip to content
Join the waitlist

AI Search

Embeddings

Embeddings are lists of numbers, called vectors, that a machine learning model produces to represent text, images or other content so that items with similar meaning sit close together. Search and AI systems compare embeddings to find passages that match a question’s meaning even when they share none of its words.

  • Industry term

By QueryRev ResearchPublished Updated6 min read

Why it matters.

Computers match exact strings easily and meaning with difficulty. Google’s Machine Learning Crash Course shows why with a food example: a one-hot encoding of 5,000 meals gives every meal its own vector, and nothing in those vectors says that a hot dog is closer to a shawarma than to a salad. Embeddings are its answer, lower-dimensional representations that give dense vectors capturing semantic relationships[1].

The idea reached language in 2013. Mikolov and colleagues proposed two model architectures for computing continuous vector representations of words from very large data sets, and reported that the vectors performed at the state of the art on their test set for measuring syntactic and semantic word similarities[2].

It reached retrieval a few years later. Karpukhin and colleagues showed that open-domain question answering could retrieve passages with dense representations alone, using embeddings learned by a dual-encoder from a small number of questions and passages, and reported that it outperformed a strong Lucene-BM25 system largely by 9% to 19% absolute in top-20 passage retrieval accuracy on their datasets[3]. That is a result on research benchmarks, not a statement about any search engine’s ranking.

Vendors now sell the step as a service. Google’s Gemini API offers embedding models that generate embeddings for text, images, video and other content for tasks such as semantic search, classification and clustering, and says that embeddings play a key role in improving model outputs in retrieval-augmented generation systems. It names cosine similarity as a good measure of how close two embeddings are, because it focuses on direction rather than magnitude, with values from -1 to 1[4]. Comparing embeddings is one common basis for semantic search.

A site does not have to supply embeddings or a special file. Google says you don’t need new machine-readable files, AI text files, markup or Markdown to appear in Google Search, and that Google Search ignores llms.txt files[5]. Sites publish them regardless: QueryRev’s study of the top sites found 848 llms.txt files, with a median size of 7 KB and a median of 38 links[6]. Such a file is a short index of links, and the passages a system compares with a question sit on the pages it points to.

How it is measured.

Similarity is measured between two vectors, usually as cosine similarity, a number from -1 to 1 where a higher value means closer in meaning[4]. The number belongs to the model that produced the vectors. A score from one model cannot be compared with a score from another, and no score is a ranking position.

To judge whether a page answers a question by meaning, embed the question and each passage of the page with the same model, rank the passages by similarity, and read the top few. What matters is whether the passage you meant to answer the question comes first, not the number it gets.

Treat a model of your own as a proxy. Search engines and AI systems use models of their own, so a test run on yours shows how a passage reads to a model, not what an engine will do.

Measured by

  • Similarity of query and passage
  • Rank of the right passage
  • Model and date

A worked example.

Illustrative: an invented site, to show the method.

A coffee-equipment shop tests one query, “can I send back an espresso machine I have used”, against four passages from its own site with one embedding model. The returns passage, which repeats the words of the query, scores 0.82. The passage about the 100-day trial, which lets a buyer try the machine at home and get a refund, shares none of the query’s key words and scores 0.74, second. A passage on choosing an espresso machine scores 0.41 and one on free delivery 0.12.

The shop sees that the trial passage is matched by meaning although its words differ, and that the delivery passage is not matched at all. It adds the trial’s refund terms to the returns page, so the best passage and the clearest answer are the same one, and it keeps the model name and the date beside the scores.

Query against passages

What to do, step by step.

  1. List the questions a page should answer, each written as a person would ask it.

  2. Split the page into passages at its headings and paragraphs.

  3. Embed the questions and the passages with one model, and rank the passages for each question by cosine similarity.

  4. Read the top passages by hand. Do they answer the question, and is the passage you meant first?

  5. Where the right passage ranks low, rewrite it so that it states the answer plainly in the terms a reader would use. Where a wrong passage ranks first, find out what it says that the right one does not.

  6. Repeat with a second model before drawing a conclusion, and record each model and the date.

Mistakes to avoid.

  • Comparing scores across models. Each model builds its own space. A similarity of 0.8 from one model and 0.8 from another do not describe the same closeness.

  • Reading similarity as relevance. Closeness in meaning is not the same as an answer. A passage can sit near a question because it is about the same topic and still not say what the reader needs.

  • Rewriting for a score. Google says you don’t need to write in a specific way for generative AI search, because AI systems understand synonyms and general meanings and can connect people with content that does not use the same precise words[5]. Write the answer clearly and use the score to find passages that do not say it.

  • Assuming a test model is an engine’s. A test on a public embedding model shows how a passage reads to that model. Search engines and AI systems use their own, so keep the result as a signal and check it against what you see in real answers.

  • Expecting a file to stand in for the page. An llms.txt file is an index of links. Google Search ignores it[5], and the meaning a system matches is in the text of the pages.

How QueryRev treats it.

QueryRev compares queries and passages by meaning as well as by words. It uses that to group queries by intent, to find the pages that compete for one intent, and to show the queries a page leaves unanswered. A finding comes with the queries and passages behind it, and a similarity score is never shown as a confidence. See the practical guide to generative engine optimization and how AI search visibility is tracked.

Questions people ask.

What are embeddings in simple terms?

An embedding is a list of numbers that stands for a piece of text, an image or another item. A model learns the numbers so that things with similar meaning get similar lists, which lets a system find the closest items to a question even when they share no words with it.

Do I need to create embeddings for my website?

Not for Google Search. Google says you don’t need new machine-readable files or AI text files to appear in it. Clear pages that answer questions in plain words are what the systems read. You can run embeddings yourself to test how your passages match questions.

Are embeddings the same as keywords?

No. A keyword is a word or phrase matched as written. An embedding represents meaning, so a passage can match a question that uses different words. The two work together: the words a reader uses still shape what a passage says.

Sources and citation.

Primary sources only: the search engines, the AI vendors, standards bodies and QueryRev’s own research. Each is cited in the text by its number.

  1. EmbeddingsGoogle for Developers ·

  2. Efficient Estimation of Word Representations in Vector Space (Mikolov et al., 2013)arXiv ·

  3. Dense Passage Retrieval for Open-Domain Question Answering (Karpukhin et al., EMNLP 2020)arXiv ·

  4. EmbeddingsGemini API, Google AI for Developers ·

  5. Google’s Guide to Optimizing for Generative AI Features on Google SearchGoogle Search Central ·

  6. State of AI crawler access, October 2026QueryRev Research ·

Cite this definition

A suggested citation. Its link goes to the definition, whose anchor does not change.

QueryRev Research. “Embeddings.” QueryRev AI glossary, 24 October 2026. https://queryrev.com/glossary/embeddings#definition

Related terms