GlossaryEmbeddings
Embeddings
Embeddings are lists of numbers, called vectors, that represent the meaning of a piece of data, such as a word, a sentence, an image or a part description, so that similar items have vectors close to each other. They let software compare meaning by measuring distance.
How it works
An embedding model is a neural network trained so that related inputs land near each other in vector space and unrelated ones land far apart. A 2013 research paper on word vectors showed that such vectors capture relationships between words. Language models use the same idea internally. Later models, such as Sentence-BERT, produce embeddings for whole sentences and paragraphs, which suits search.
To use embeddings, a system runs each item through the model once and stores its vector. To compare two items, it measures the distance or angle between their vectors, often with cosine similarity. Vector databases store many vectors and find the nearest ones to a query quickly.
Embeddings vs keyword search
Keyword search matches exact words. It finds "QFN-32" when the query says "QFN-32," but misses a document that says "32-pin quad flat no-lead." Embedding search matches meaning, so it finds the second document, but it can miss exact identifiers such as manufacturer part numbers. Good search systems combine both.
Why it matters
Embeddings are the base of retrieval-augmented generation, semantic search, clustering, deduplication and recommendation. They let a system find a relevant datasheet section, group similar defect reports or spot that two part descriptions mean the same thing, without hand-written rules.
How to get it right
- Choose an embedding model suited to the content, since general models can miss technical meaning.
- Embed text in chunks of a consistent, meaningful size, measured in tokens.
- Re-embed all items when switching models, since vectors from different models do not compare.
- Combine with keyword search for identifiers and numbers.
- Test retrieval quality on real questions from your domain.
Embeddings in robotics and drone hardware
Hardware teams use embeddings to search datasheets and design notes, match free-text part descriptions to catalog entries and group similar test failures or field reports. Image embeddings also group similar inspection images, which speeds up defect classification and labeling, and they feed anomaly detection on new images. In a high-mix shop, embeddings match a new BOM's free-text descriptions, such as "10k 1% 0402 thick film", to parts already approved on earlier boards, so engineers review ranked matches instead of searching line by line.