View on GitHub

Embeddings and vector search

AI engineering planned

Your search found ‘car’ when you typed ‘vehicle’. Here’s how.

The idea

An embedding turns text into a list of numbers, placed so that similar meanings land close together. Search then becomes geometry: embed the query, find the nearest vectors.

Word2vec famously showed that directions can carry meaning, so king minus man plus woman lands near queen. Vector databases exist to do this nearest-neighbor search fast over millions of items.

What the lesson will build

Key ideas

The video

When it’s published, the code will live in ai-engineering/ and this page will link to it.


All topics · Suggest a topic