Skip to content
Glossary · AI building blocks

Vector database

Also called vector store, vector index.

Definition

A database built to store embeddings and quickly find the ones closest to a query vector.

Last updated

What it is.

A vector database stores embeddings alongside the original item and its metadata, and builds an index for nearest-neighbour search: given a query vector, return the most similar items fast. Most use approximate search, which trades a little accuracy for a lot of speed.

It can be a dedicated product or an extension to a database you already run, such as a vector type and index in PostgreSQL. Good systems also filter on metadata, such as customer, language or date, in the same query.

Why it matters

It is the retrieval engine behind most RAG and semantic search features. The choice affects cost, latency, how permissions are enforced and how much new infrastructure the team has to run.

Watch out

Common mistakes.

  1. 01

    Adding a new database before checking whether the one you have can do vector search well enough.

  2. 02

    Filtering for permissions after the search, which can leak results or return too few.

  3. 03

    No plan for re-indexing when documents change or the embedding model is replaced.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab