Embeddings and Vector Search

An embedding maps text, images or other data to a vector so that similar items sit close together. Vector search finds nearest neighbours of a query vector, using cosine similarity or dot product, usually through approximate-nearest-neighbour indexes (HNSW, IVF, product quantization). It powers semantic search and the retrieval step of RAG.

Practice

Vault notes

Models: embedding-models, embeddinggemma. Index algorithms: ann-index-algorithms, turbovec. Databases: sql-vector-databases-transforming-genai-applications. Related concepts: tokenization, agent-memory-systems, multimodal-models.

Sources