lowob

What Are Embeddings?

An embedding is a list of numbers that represents a piece of text, an image or another item, arranged so that items with similar meaning sit close together. Comparing those numbers lets software find related content without matching exact words. Embeddings power semantic search, recommendations and retrieval for AI assistants. They measure similarity, not truth, and the right model depends on the task.

Gateway 0ToolingContextRecordReasoningGateway 1Gateway 2Gateway 3
Where this piece sits in The Build Order: the context layer.

What embeddings mean

Computers compare numbers easily and meaning poorly. An embedding model bridges the gap. It reads an input, such as a sentence, an email or a product description, and outputs a fixed-length list of numbers. Each list is a point in a space with hundreds or thousands of dimensions.

The model is trained so that position carries meaning. Google's machine learning crash course uses food as its example. In a simple illustrative space, hot dog and shawarma sit near each other, while apple strudel sits further away. Real embeddings have far more dimensions; Google notes that word embeddings often use 256, 512 or 1,024, and that the individual dimensions are rarely as readable as "sandwich-ness".

The same course makes a point that matters for buyers: embeddings reflect the task they were trained for. Cereal and breakfast sausage might sit close together in a model organised by time of day and far apart in one organised by vegetarian or not.

Embeddings areEmbeddings are not
Numeric representations of meaningA summary a person can read
A way to measure similarity between itemsA check on whether content is true
Produced by a separate, usually cheap, modelThe language model that writes answers
Comparable only within the same embedding modelPortable between providers without re-embedding

How embeddings work, and why they matter for a commercial team

The workflow has three steps. Each document, record or passage is converted to an embedding and stored, usually in a vector database. A query is converted with the same model. The system then finds the stored items whose vectors sit closest to the query. OpenAI recommends cosine similarity, a measure of the angle between two vectors, as the distance function.

OpenAI lists the main uses as search, clustering, recommendations, anomaly detection, diversity measurement and classification. For a commercial team these translate into concrete jobs:

  • Finding past proposals that answered a similar question, even when the wording differs.
  • Matching inbound leads to the closest existing accounts to catch duplicates.
  • Grouping win-loss notes by theme without a fixed tag list.
  • Retrieving the relevant policy or case study before an assistant drafts a reply, the retrieval step in RAG.

Embedding is also cheap compared with generation. OpenAI estimates about 62,500 pages per dollar with text-embedding-3-small and about 9,615 with the large model, assuming roughly 800 tokens a page. A library of 10,000 documents can be embedded for a small one-off cost, though it must be redone when content changes or the model is replaced.

In lowob's model of the enterprise brain, embeddings sit in the wiring stage. They help the context layer choose what reaches the model. They do not record what was decided or why; that belongs in the record.

How to evaluate embeddings, and common mistakes

CheckWhy it matters
Test on your own queriesPublic rankings average many tasks that may not match yours
Check language coveragePerformance varies by language and domain vocabulary
Decide chunk sizeWhole documents blur meaning; very short passages lose context
Plan for re-embeddingVectors from different models cannot be compared
Restrict access in the storeEmbeddings derived from sensitive text remain sensitive

The MTEB benchmark, published in October 2022 by Muennighoff and colleagues, tested 33 models and concluded that no particular method dominated across all tasks. A model that ranks first for retrieval may rank lower for clustering. Build a test set of 30 to 50 real queries with the documents a person would expect to see, and measure how often the right one appears in the top five.

The most common mistake is treating similarity as relevance. Two contracts can be close in embedding space and differ on the one clause that matters. A second is ignoring security. OWASP's 2025 Top 10 for LLM applications lists vector and embedding weaknesses as a risk category of their own. An assistant that retrieves from a shared store can surface content a user should not see. Apply the same permissions to the vector store as to the source documents.

lowob takeaways

  • Embeddings measure closeness of meaning. They let software find related content without exact words.
  • They are task-specific. Test on your own queries before choosing a model.
  • Similar is not correct. Retrieval narrows the field; a person or a check still decides.
  • Permissions travel with the data. Secure the vector store like the source system.

Common questions

What are embeddings in simple terms?

They are lists of numbers that represent the meaning of text or other data. Items with similar meaning get similar numbers, so software can find related content by comparing them.

What is the difference between embeddings and a vector database?

Embeddings are the numeric representations. A vector database stores them and finds the closest matches to a query quickly, often across millions of items.

Are embeddings the same as a large language model?

No. Embedding models convert input into vectors for comparison. Language models generate text. Many AI systems use both: embeddings to retrieve, a language model to write.

Can embeddings leak sensitive data?

They can. OWASP lists vector and embedding weaknesses among its 2025 LLM risks. Treat vector stores as sensitive and apply the same access rules as the source documents.

Sources and notes

What Is an AI Agent, and Where Does It Fit in the Brain?

Read next in The Build Order