Embeddings and similarity

TODO introduction.