From 9dee9e7adeb2a7cceec377988970249b932e0d7d Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Tue, 9 Jan 2024 20:56:13 +0800 Subject: [PATCH] fix rerank issue when doing economy search (#1978) Co-authored-by: jyong --- api/core/index/keyword_table_index/keyword_table_index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/index/keyword_table_index/keyword_table_index.py b/api/core/index/keyword_table_index/keyword_table_index.py index 81e8145bcb2651..d7f569b19c4c98 100644 --- a/api/core/index/keyword_table_index/keyword_table_index.py +++ b/api/core/index/keyword_table_index/keyword_table_index.py @@ -136,6 +136,7 @@ def search( page_content=segment.content, metadata={ "doc_id": chunk_index, + "doc_hash": segment.index_node_hash, "document_id": segment.document_id, "dataset_id": segment.dataset_id, }