How to perform TopN ranking statistics for Knowledge Base FAQs

The internal knowledge base has a requirement to rank frequently asked questions and send them to users as recommendations based on that ranking. How can this requirement be met?

Are you referring to Dify’s knowledge base?

Yes, it’s a knowledge base built with Dify. I want to count the most frequently used Q&A from this knowledge base.