add query reader and add KNN in PRF calculation