further work - various tfidf methods. Tried to compress to a single tfidf function but the datasets are too different. To speed things up, the payload should be log'd tfidf already (or maybe as much of the cosine as possible). Have to work out the cosine similarity implementation next and also accomodate for multipart history item triplets.