How to use knn for recommendations

tell me how can i build a ml model using knn which return the similar results