How to add rating feature into your product detail page?

Please refer this article to do so

https://docs.magento.com/user-guide/stores/attributes-rating.html