标签: Python

[Question]: Why does reranking need to recalculate the scores for vector search and full-text search?

[Question]: Why does reranking need to recalculate the scores for vector search and full-text search?

用户在使用 RAGFlow 进行检索增强生成(RAG)时,从数据库中通过向量搜索和全文搜索获取了一批数据后,观察到 rerank 阶段(在 Python 脚本中)重新计算了分数,而没有直接使用数据库原始分数。用户质疑这种重算行为可能破坏基于原始相关性的排序,从而降低查询准确性。