From c01f357b1f9c1b27a95d8312c49d7b7a32b77528 Mon Sep 17 00:00:00 2001 From: xixihahaliu Date: Tue, 23 Jan 2024 18:06:56 +0800 Subject: [PATCH] fix: Open rerank by default. --- qanything_kernel/qanything_server/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qanything_kernel/qanything_server/handler.py b/qanything_kernel/qanything_server/handler.py index bafa25e1..d59be214 100644 --- a/qanything_kernel/qanything_server/handler.py +++ b/qanything_kernel/qanything_server/handler.py @@ -301,7 +301,7 @@ async def local_doc_chat(req: request): local_doc_qa.print('local_doc_chat %s', user_id) kb_ids = safe_get(req, 'kb_ids') question = safe_get(req, 'question') - rerank = safe_get(req, 'rerank', default=False) + rerank = safe_get(req, 'rerank', default=True) local_doc_qa.print('rerank %s', rerank) streaming = safe_get(req, 'streaming', False) history = safe_get(req, 'history', [])