Approximate nearest neighbor search with cosine similarity.