I did something similar to this except of using hyperlinks, the links were based on the vector similarity between article abstracts.
https://github.com/neuml/txtai/blob/master/examples/58_Advan...