You can look at Twitter's recommendation system [here](https://github.com/twitter/the-algorithm) to get an idea.
You can look at Twitter's recommendation system [here](https://github.com/twitter/the-algorithm) to get an idea.