finish the basic doc reranker