AI-200

Introduction to Vector Search and RAG with PostgreSQL

How the pgvector extension stores and searches embeddings in Azure Database for PostgreSQL, how vector indexes are tuned and sized, and how to build retrieval-augmented generation queries with metadata filters.

  • 4 lessons
  • Module quiz

pgvector turns PostgreSQL into a vector database, and SQL makes it easy to combine vector similarity with filters, joins and full-text search. Its indexes and server sizing decide whether retrieval stays fast as data grows.

This module covers vector storage, indexing, sizing and filtered retrieval.

What the exam expects

Expect questions on vector types and operators, matching operator classes, HNSW and IVFFlat parameters, dimension limits, memory sizing, overfiltering and iterative scans.

How this module is organized

Understanding pgvector introduces types and operators. Tuning pgvector Indexes covers index tuning, Sizing PostgreSQL for Vector Workloads covers compute, memory and storage, and Building Filtered RAG Retrieval in PostgreSQL covers filtered and hybrid retrieval.

  1. Understanding pgvector Lesson 1
  2. Tuning pgvector Indexes Lesson 2
  3. Sizing PostgreSQL for Vector Workloads Lesson 3
  4. Building Filtered RAG Retrieval in PostgreSQL Lesson 4
  5. Practise and review
  6. Checkpoint Practice activities across the module
  7. Test your knowledge 5 questions