Module resources

Embeddings and vector search

Checked sources to go further than the lessons. Back to the module.

Recommended learning sequence

Work through these in order.

  1. The Illustrated Word2vec (opens in a new tab)

    Jay Alammar2019Article

    Start with the idea behind the module: a picture-led post showing items as vectors, comparing them with cosine similarity and learning embeddings from text, before any index appears.

  2. Vector embeddings (opens in a new tab)

    OpenAI2026Documentation

    Then the practical side: a vendor guide to dimensions, normalization and when cosine and Euclidean rank alike. Repeated from lesson 1 on purpose, to fix the order.

  3. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks (opens in a new tab)

    Nils Reimers, Iryna Gurevych2019PaperEMNLP 2019

    Read the paper that made sentence embeddings practical to compare at scale, which motivates why a search index is needed at all. Repeated from lesson 1 on purpose.

  4. Getting started (Faiss wiki) (opens in a new tab)

    Meta Research (Faiss project)2020Documentation

    Hands-on next: build an exact index and get ground-truth neighbours, the baseline you measure approximate search against in lesson 2. Repeated from the lesson further lists on purpose.

  5. Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs (opens in a new tab)

    Yu. A. Malkov, D. A. Yashunin2020PaperIEEE Transactions on Pattern Analysis and Machine Intelligence

    Now the algorithm behind the most common index in lesson 2. You know what exact search costs, so the layered-graph idea has something to fix. Repeated on purpose: it is a lesson 2 source, placed here to fix the reading order.

  6. Faiss: A library for efficient similarity search (opens in a new tab)

    Hervé Jegou, Matthijs Douze, Jeff Johnson2017Article

    An engineering view of why a purpose-built similarity-search library was needed and what it was measured on.

  7. Product Quantization: Compressing high-dimensional vectors by 97% (opens in a new tab)

    Pinecone2026Article

    Finish hands-on: the walk-through builds PQ and IVFPQ indexes in Faiss and compares memory, recall and speed against a flat index, so you see the trade-off in numbers.

All resources

Further reading

Research papers

  • Efficient Estimation of Word Representations in Vector Space (opens in a new tab)

    Tomas Mikolov, Kai Chen, Greg Corrado, Jeffrey Dean2013Preprint

    The word2vec paper that popularised learned word vectors and similarity between them. It shows where the idea of 'close in vector space means close in meaning' comes from, a background to lesson 1.

  • Billion-scale similarity search with GPUs (opens in a new tab)

    Jeff Johnson, Matthijs Douze, Hervé Jégou2021PaperIEEE Transactions on Big Data 7(3), 2021

    The research paper behind Faiss on GPUs: brute-force, approximate and compressed search at billion scale. Read it for how far exact search can be pushed with hardware. This is the arXiv version, and it goes deeper than this module needs.

Hands-on

Books

Case studies

Datasets