bm25 for document inference