An embedding turns text into a vector of meaning. Training (word2vec, contrastive), cosine similarity, ANN (HNSW/IVF/PQ), vector databases, MTEB.