Vector database (vector databases). What it means.

A vector database is a database built to store embeddings, the numeric representations of meaning, and to find the items most similar to a query quickly, even across millions of records.

By Brady Heinrich · Updated

Definition

A vector database is a database built to store embeddings, the numeric representations of meaning, and to find the items most similar to a query quickly, even across millions of records.

What is a vector database?

A vector database stores vectors, which are long lists of numbers that represent the meaning of text, images or other content, and answers one kind of question very fast: which stored items are closest to this one? That is similarity search, and it is the basis of semantic search and most systems that let a language model answer from a company's own documents.

A traditional database is good at exact matches: find the customer whose ID is 4471. A vector database is good at approximate ones: find the ten passages that mean something close to this question.

How does a vector database work?

  1. Embed. Each document is split into passages, and an embedding model turns each passage into a vector.
  2. Store. The vector is saved with the original text and metadata such as source, date and access rights.
  3. Index. The database organises the vectors so it does not have to compare a query with every record. Most use approximate nearest neighbour methods, which trade a little accuracy for a large gain in speed.
  4. Query. The question is embedded with the same model, and the database returns the nearest vectors, often filtered by metadata.

Vector database vs relational database

Relational databaseVector database
StoresRows and columnsVectors with attached metadata
Finds byExact values and rangesSimilarity in meaning
Typical query"Orders over $500 in March""Passages like this question"
ResultExactRanked by closeness, approximate
Typical useTransactions, recordsSemantic search, RAG, recommendations

The line is blurring. Many general-purpose databases and search engines now offer vector search as a feature, so a separate product is not always needed.

Do you need a vector database?

You need vector search when users or a model must find content by meaning across a body of material too large to paste into a prompt. You may not need a dedicated product. For a few thousand documents, a vector extension to a database you already run is usually enough. A specialised system earns its place at large scale, with strict speed requirements or heavy filtering.

What goes wrong?

Most problems come from what was stored, not the database: passages split in the wrong places, duplicates, outdated versions and missing access controls that let a search return documents the user should not see.

An example

A consultancy has 40,000 past proposals and reports. It splits them into 900,000 passages, embeds each and stores them in a vector database with client, year and confidentiality tags. A consultant asks, "what have we said about pricing strategy for subscription retailers?" The database returns the 12 closest passages she is cleared to see in under a second, and a language model summarises them with links to the originals.

The common mistake

Buying a vector database before testing retrieval quality. The database is rarely the bottleneck. How documents are split, cleaned and tagged decides whether the right passage comes back. Test with real questions on a small sample first.

How people search for vector database

  • vector database12,100 a month
  • vector db12,100 a month
  • vector databases12,100 a month
  • what is a vector database1,600 a month
  • vector search1,600 a month
  • vector store720 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.