← Back to catalog
Data Engineering and Analytics

Introduction to Vector Databases for AI

Level: Practitioner2 daysVirtual / In-person

How vector databases store and search embeddings to power semantic search and RAG.

Overview

Every serious AI application eventually needs to find things by meaning rather than by keyword: the support article that answers a question phrased three different ways, the document a chatbot should cite, the products that are similar rather than identical. Vector databases are the infrastructure that makes this possible, and they behave unlike any database most engineers have used: results are approximate by design, "correct" is a matter of degree, and quality depends as much on how you prepare the data as on the engine you choose.

This is a hands-on, practitioner course. It builds the subject in dependency order: first embeddings, because nothing about a vector database makes sense until you understand what a vector of meaning is; then similarity search and the indexes that make it fast; then choosing and operating a database; and finally building real semantic search and seeing how it becomes the retrieval half of RAG. In keeping with a less-but-deeper philosophy, we go deep on the concepts and skills that transfer across every vector database rather than surveying vendor feature lists. Every module ends with a lab, and each module builds on the one before.

Who Should Attend

  • Developers and data engineers adding semantic search or AI retrieval to an application
  • Database professionals extending relational or NoSQL experience into vector workloads
  • Architects evaluating vector database options for an AI initiative

Learners who want to go straight to building full retrieval-augmented applications should follow this course with Retrieval-Augmented Generation (RAG) with Vector Databases.

Prerequisites

  • Basic Python: enough to read and modify short scripts
  • Comfort with core database concepts (tables or collections, queries, indexes)
  • No machine learning background required

What You'll Be Able to Do

  • Generate embeddings for real text and measure similarity to show why software can compare things by meaning
  • Compare exact and approximate nearest neighbor search and judge the recall, speed, and memory tradeoff
  • Select a vector database sensibly, from pgvector to dedicated engines and managed services, and recognize when you need none
  • Chunk, embed, and load a real document set with the metadata that drives result quality
  • Build and tune a semantic search system, and evaluate its quality with an honest test set
  • Wire retrieval into an LLM prompt to produce grounded answers, and judge the cost and scale tradeoffs

Course Outline

Day one: embeddings and how vector search works

  • Embeddings: Vectors of Meaning
    • From words to vectors: what an embedding model does
    • Why similar meanings land near each other, shown concretely
    • Choosing an embedding model and what its dimensions cost you
    • Lab: generate embeddings for real text and measure similarity between them
  • How Similarity Search Works
    • Distance metrics: cosine, dot product, and Euclidean, and when the choice matters
    • Why exact search does not scale, and what approximate nearest neighbor buys you
    • HNSW and friends at an intuition level: recall versus speed versus memory
    • Lab: compare exact and approximate search on the same dataset and observe the tradeoff
  • Choosing a Vector Database
    • The landscape: pgvector inside PostgreSQL, dedicated engines, and managed cloud services
    • Honest selection criteria: existing stack, scale, filtering needs, and operational appetite
    • When you do not need a vector database at all
    • Lab: stand up a vector database and load the embeddings from the first lab

Day two: building and operating semantic search

  • Preparing Data for Retrieval
    • Chunking documents: sizes, overlap, and why chunking drives result quality
    • Metadata design: what to store alongside vectors and why
    • Lab: chunk, embed, and load a real document set with useful metadata
  • Querying Well
    • Top-k search, metadata filtering, and combining the two
    • Hybrid search: adding keyword signals to vector similarity
    • Evaluating result quality with a small, honest test set
    • Lab: build and tune a semantic search over the loaded documents
  • Operating and the Bridge to RAG
    • Updates, deletes, and re-embedding when models or documents change
    • Cost and scale: index memory, query volume, and what actually gets expensive
    • How this becomes RAG: retrieval feeding an LLM, and what that adds to the picture
    • Lab: wire the search system into a simple LLM prompt and see grounded answers

Extended Version

The three-day version keeps the same gradient and adds depth and a fuller build:

  • Deeper evaluation: building a retrieval quality harness and tuning against it
  • Reranking and query rewriting to improve relevance
  • Operating at scale: sharding, index rebuilds, and monitoring in production
  • A capstone that builds a complete semantic search service over a realistic corpus, evaluated and tuned end to end

Common questions

How long is Introduction to Vector Databases for AI?
2 days, expandable to 3 days.
Is Introduction to Vector Databases for AI available online or in person?
It is delivered live by the instructor, virtual and in-person.
What experience level is Introduction to Vector Databases for AI for?
Practitioner. Some working experience is assumed.
Who teaches Introduction to Vector Databases for AI?
Erik Gross, a working software architect and CTO with 35 years as a technology educator and author.
Can Introduction to Vector Databases for AI be customized, and how do I book it?
Yes, every course can be tailored to your team. To book or ask questions, email erik.d.gross@gmail.com or book a call at https://calendly.com/erikgross/ilt-call.