Berk Bayri

Vector embedding

A list of numbers that a model produces to represent the meaning of a piece of text, an image or another item, so that items with similar meaning end up close to each other and can be found by similarity rather than exact words.

A vector embedding turns meaning into coordinates. An embedding model reads a sentence, a paragraph, a product description or an image and returns a long list of numbers. Two items about the same thing get similar lists, even when they share no words: "cancel my subscription" lands near "how do I stop being billed".

This is what lets an AI system search by meaning. Documents are converted into embeddings once and stored, usually in a vector database. When a question arrives, it is embedded the same way, and the system pulls back the stored items whose numbers sit closest to it. Most retrieval-augmented generation setups work like this.

Where it goes wrong

Close in meaning is not the same as correct for the question. A search for the 2026 pricing policy can return the 2024 policy, because the two documents read almost the same. Embeddings know nothing about which version is current, who is allowed to see a file or which figure is the approved one. Those rules have to come from metadata, permissions or a semantic layer, not from the vectors.

Embeddings also tie you to the model that made them. Switching embedding models generally means re-processing the whole document store, which is worth knowing before a vendor decision rather than after.