An embedding turns a piece of text, an image, or audio into a string of numbers so a machine can calculate how similar two things are. Search engines, recommendation systems, and chatbot knowledge bases mostly rely on it to find things, rather than matching keywords word for word.
Where do vectors come from?
A model learns how words co-occur in large amounts of text: words that often appear together end up close to each other, while words with opposite meanings end up far apart. So “cat” is closer to “dog” than to “car”. Nobody scores this by hand; the distances emerge naturally during training.
How is it different from keyword search?
Keyword search only checks whether the exact words appear, so rephrasing a query can return nothing. Vector search looks at meaning: searching for “phone won't charge” can surface content about “loose charging port” even though the wording differs. The trade-off is that it may also rank “somewhat similar but wrong” content highly, so an extra filtering step is still needed.
Three common misunderstandings
First, a vector does not label a sentence; it does not judge right or wrong, it only records similarity. Second, longer vectors are not automatically more accurate — dimensions, training data, and fit to the task matter more. Third, two vectors being close does not mean both sentences are correct; they may simply be phrased alike.
When is it used?
For personal knowledge bases, customer-service Q&A, and product recommendations, embeddings first shortlist candidates from a huge collection, and then a large model or a set of rules makes the final call. Treat it as a rough filter, not a judge, and it works most reliably.