Study the lesson
Work through every section at your own pace, from start to finish.
If you have built or studied a retrieval-augmented generation system, you have almost certainly encountered a vector database. If you have not, you will. As of 2026, vector databases sit at the heart of most production AI retrieval pipelines, and understanding what they actually do, as opposed to what the marketing suggests, is becoming a core competency for AI practitioners. The term is frequently misunderstood, and that misunderstanding leads to poor architecture decisions: practitioners sometimes treat vector databases as AI in their own right, assume they can replace a relational database, or expect them to compensate for weak embeddings. None of these is true. Think of it this way: every piece of content you feed into an embedding model becomes a point on a vast, high-dimensional map, and similar content clusters together. A vector database is the specialised infrastructure that lets you ask, in milliseconds, "what is nearest to this point?" This lesson covers what a vector database actually stores, how it retrieves data geometrically rather than by keyword, why the approximate nature of its search is a feature rather than a bug, and where vector databases fit in a production stack and where they do not.
Unlock the full lesson, the quiz, and your verifiable completion.
Continue with GoogleBy continuing you agree to the Institute of AI terms of use and privacy policy.
None of these are hard requirements. The lesson is easier if they are already familiar, but everything it uses is explained along the way, so you can start without them.
Section one is open to everyone. Create a free account to work through the rest and take the quiz.
One misconception is worth dispelling at the outset: a vector database is not the home of your documents, images, or audio. Its core job is to store embeddings, also called vectors, produced by a machine learning model, along with optional metadata. An embedding is a dense numerical vector that encodes the semantic content of an input as a point in high-dimensional space. When you pass a sentence through a text embedding model you get back an array of floating-point numbers, perhaps 768 dimensions from a model such as BERT-base or 3,072 from a more recent embedding model. Those numbers represent the meaning of the sentence geometrically: sentences that mean similar things produce vectors that are close together, and unrelated sentences produce vectors that are far apart. The model encodes; the database stores and retrieves. The distinction matters because the quality of your retrieval depends entirely on the quality of your embeddings. A vector database is a precision instrument, but it is only as useful as what you feed it, and weak embeddings produce weak retrieval regardless of how sophisticated the indexing is. For each record a vector database typically holds the vector itself, a unique identifier, and optional metadata such as a title, timestamp, or category. The source content, such as the original text chunk, is best kept elsewhere, usually in a relational or document database: the vector store returns IDs and optionally metadata, and your application fetches the full content using those IDs. Some systems let you keep the chunk text in the metadata payload for convenience, but treating the vector store as the canonical copy of your data is an anti-pattern. This also explains why the shorthand that any database with a vector extension is a vector database is dangerous. Postgres with the pgvector extension is a legitimate and useful tool, but it is architecturally different from purpose-built systems such as Pinecone, Weaviate, Qdrant, and Milvus, which are designed from the ground up for high-dimensional vector workloads, with indexing, memory management, and query execution optimised specifically for this task at scale. Pgvector is a sensible choice for smaller workloads or teams already committed to Postgres, but conflating the two can lead to poor performance decisions.
Work through every section at your own pace, from start to finish.
A short set of questions on what you have just covered.
Every completion has a certificate that you can share publicly for anyone to verify.
Pass the quiz and the Institute of AI issues you a record of completion with your score. Every completion has its own public verification page, so the link you put on your CV or LinkedIn profile can be checked by anyone, at any time.
Free lessons, a quiz to test what you have learned, and a completion you can verify publicly. All from the UK's professional body for artificial intelligence.
Every AI lesson is free to start, free to finish, and ends in a completion you can verify publicly.