Tutorial 05
Beginner

Vector Databases

How vector databases turn meaning into math and find it fast — embeddings, similarity, ANN indexes, quantization, hybrid search, and running them in production.

Vector Databases: Zero to Industry Expert

A complete, plain-English course. No prior machine-learning knowledge assumed. By the end you’ll understand how vector databases work under the hood and be able to design, build, and run them in production like a senior engineer.

How to use this course

Read the modules in order. Each one builds on the last. Every module has:

  • The big idea — explained like you’re five.
  • The real mechanics — what’s actually happening, with the math kept gentle.
  • Hands-on — code you can run.
  • Gotchas — the mistakes that bite people in production.
  • Check yourself — questions to make sure it stuck.

The modules

#FileWhat you’ll learn
101-what-is-a-vector-database.mdWhat these things are and why the world suddenly needs them
202-embeddings.mdHow text, images, and audio become numbers (the heart of everything)
303-vectors-and-similarity-metrics.mdVector math made painless; cosine, dot, Euclidean
404-similarity-search.mdExact nearest-neighbor search and why it doesn’t scale
505-ann-indexes.mdThe clever tricks (HNSW, IVF, PQ, LSH) that make search fast
606-quantization-and-compression.mdShrinking vectors so billions fit in RAM
707-choosing-a-vector-database.mdpgvector, Pinecone, Qdrant, Milvus, Weaviate, Chroma, FAISS
808-building-rag.mdBuild a real Retrieval-Augmented Generation app end to end
909-hybrid-search-and-filtering.mdCombine keywords + vectors + metadata filters
1010-production-and-scaling.mdSharding, replication, latency, cost, monitoring
1111-evaluation-and-quality.mdMeasure and improve retrieval quality (recall, MRR, nDCG)
1212-advanced-and-frontier.mdReranking, multi-vector, late interaction, GraphRAG, security
1313-glossary-and-cheatsheet.mdEvery term defined + a one-page reference

The 30-second summary (so the whole course has a spine)

A vector database stores data as lists of numbers called embeddings. Embeddings are created by AI models so that things with similar meaning end up close together in number-space. To “search,” you turn your query into an embedding too, then find the stored vectors nearest to it. Doing this exactly is slow at scale, so we use Approximate Nearest Neighbor (ANN) indexes that trade a tiny bit of accuracy for enormous speed. Everything else in this course is detail on top of that one idea.

Start with 01-what-is-a-vector-database.md.