Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

Vector databases cheat sheet

Opens with credits

A quick-revision book on storing and searching embeddings: how similarity works, how approximate indexes trade recall for speed, and how to build retrieval that holds up in production. Examples use pgvector SQL and Python, and the ideas carry over to every dedicated vector store.

Curated by Tauseef Fayyaz9 chapters64 concepts88 glossary terms

Chapters

9 chapters · 64 concepts

  1. 1Embeddings and similarityWhat a vector is in this world, where it comes from and the three ways of measuring how close two vectors are.8 concepts
  2. 2Nearest neighbour searchFinding the k closest vectors to a query, exactly or approximately, and why approximate is usually the right call.6 concepts
  3. Index types: HNSW, IVF and PQThe main ANN index families, what each one trades and the knobs that matter.8 conceptsOpens with credits
  4. Recall, latency and filteringTuning an index against real numbers, and combining vector search with ordinary conditions such as tenant, language or date.6 conceptsOpens with credits
  5. Hybrid search and rerankingCombining keyword and vector results, and using a stronger model to reorder the shortlist.7 conceptsOpens with credits
  6. Chunking for RAGRetrieval-augmented generation depends on what you store. How you cut documents into chunks decides what the model can ever be shown.7 conceptsOpens with credits
  7. pgvector in practiceVector search inside PostgreSQL: the column types, the distance operators and how to query it from Python.7 conceptsOpens with credits
  8. Dedicated stores and choosingThe main purpose-built vector databases, what sets each apart, and how to decide between them and Postgres.7 conceptsOpens with credits
  9. Evaluation and operationsMeasuring retrieval quality, and running vectors over time as models, data and costs change.8 conceptsOpens with credits
  10. 10Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.88 terms

About this sheet

Embeddings, similarity metrics, ANN indexes, filtering, hybrid search, reranking, RAG chunking, pgvector, dedicated stores and evaluation.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com