I am trying to find out cosine similarity for a large dataset. The problem is it takes a long time and resource, so i have to cancel it before. here is my current code