In short
A vector database (German: ‘Vektordatenbank’) is a database specialised in storing data as so-called vectors and searching it for similarities at lightning speed. It is a key component of modern AI applications because it offers a capability where traditional databases fall short: finding content based on meaning rather than exact matches.
In the past, if you searched for ‘dog’, you would only find entries containing the word ‘dog’. A vector database also finds ‘puppy’, ‘four-legged animal’ or ‘pet on a lead’ – because it understands that these terms are semantically closely related.
This is made possible by a special form of data: embedding. Texts, images or other content are translated by an AI model into long sequences of numbers – the vectors. Content with similar meaning is assigned similar vectors, meaning they lie close together in ‘vector space’. It is precisely this proximity that the database uses to calculate similarity.
What is an embedding?
An embedding is the bridge between human meaning and machine-readable numbers. An AI model converts content into a vector consisting of often hundreds or thousands of numbers, which encodes its meaning in a way that machines can compare. The key effect is that the spatial proximity of two vectors corresponds to their similarity in content. ‘King’ and ‘queen’ end up close to each other, whilst ‘king’ and ‘bicycle’ are far apart. A vector database stores these embeddings and is optimised to find the nearest stored vectors for a query vector – even with millions of entries, in a fraction of a second.