单独使用交叉编码器 2026/8/20 23:18:58 拓冰建站 浏览量 # 使用交叉编码器重排rerankerCrossEncoderReranker(model_nameBAAI/bge-reranker-base,devicecudaiftorch.cuda.is_available()elsecpu)# 重排文档rerankedreranker.rerank(query故障排查,documentsfused_results,top_k20)