From c99b53064d0b7ffd518703bfd776f158a8b2fd2f Mon Sep 17 00:00:00 2001 From: Yao Wei <251109226@qq.com> Date: Wed, 4 Mar 2026 19:24:49 +0800 Subject: [PATCH] fix: remove company info from resume_summary to prevent over-retrieval (#13358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? Problem: When searching for a specific company name like(Daofeng Technology), the search would incorrectly return unrelated resumes containing generic terms like (Technology) in their company names Root Cause: The `corporation_name_tks` field was included in the identity fields that are redundantly written to every chunk. This caused common words like "科技" to match across all chunks, leading to over-retrieval of irrelevant resumes. Solution: Remove `corporation_name_tks` from the `_IDENTITY_FIELDS` list. Company information is still preserved in the "Work Overview" chunk where it belongs, allowing proper company-based searches while preventing false positives from generic terms. --------- Co-authored-by: Aron.Yao Co-authored-by: Aron.Yao Co-authored-by: Liu An --- rag/app/resume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/app/resume.py b/rag/app/resume.py index f9f885e12..08bb73776 100644 --- a/rag/app/resume.py +++ b/rag/app/resume.py @@ -2125,7 +2125,7 @@ def _build_chunk_document(filename: str, resume: dict, # Extract key identity fields, redundantly written to each chunk # These fields are small in size but high in information density; once retrieved, the candidate can be immediately identified _IDENTITY_FIELDS = ("name_kwd", "phone_kwd", "email_tks", "gender_kwd", - "highest_degree_kwd", "work_exp_flt", "corporation_name_tks") + "highest_degree_kwd", "work_exp_flt") identity_meta = {} for ik in _IDENTITY_FIELDS: iv = resume.get(ik)