Separated tfidf, vector and cosine similarity query into it's own separate function