https://en.m.wikipedia.org/wiki/PageRank
https://join-lemmy.org/docs/contributors/07-ranking-algo.html
Can't speak for AI applications but this how how Google, LinkedIn, Reddit, and Lemmy handle ranking algorithms (different mechanisms for different platforms and demands)