Repository navigation
Refa: Resume parsing module (architectural optimizations based on SmartResume Pipeline) - #13255
Conversation
|
@dosu 麻烦审核下代码 |
|
感谢提交这个 PR!由于我无法直接访问 PR #13255 的具体代码变更,我基于现有的简历解析模块进行了对比分析。 架构对比你提出的优化与现有实现对比:
建议审查要点
由于我无法直接查看 PR 中的具体代码变更,能否请你分享 PR 中主要修改的文件列表?这样我可以提供更有针对性的审查意见。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13255 +/- ##
==========================================
- Coverage 49.89% 47.18% -2.71%
==========================================
Files 44 44
Lines 9738 9748 +10
Branches 110 110
==========================================
- Hits 4859 4600 -259
- Misses 4871 5135 +264
- Partials 8 13 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@dosu 可以看下效果 |
|
感谢分享截图!从你展示的效果来看: 切分效果 - 看起来页面分割和层级排序正常工作,内容被正确识别和组织。 检索效果 - 检索结果显示了相关匹配,说明索引机制在正常运作。 整体效果看起来不错!几个问题想确认一下:
如果方便的话,能否补充一些性能对比数据或准确率指标?这对评估 SmartResume Pipeline 的优化效果会很有帮助。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
@dosu 这个是测试结果 |
|
感谢提供详细的测试数据!这个基于正则表达式(无 LLM)的测试结果很有参考价值。 测试数据总结:
字段提取准确率:
核心指标:姓名+手机组合准确率 81%,对于纯正则方案来说是不错的基线。 建议:
整体来看,正则基线方案的性能很好(2.37s/PDF),核心字段覆盖合理。期待看到 LLM 辅助提取的对比结果! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
|
Thanks for the contribution, please remove Chinese characters from comments/logs |
I will deal with it. |
- Rewrite resume extraction pipeline with structured LLM-based parsing for basic info, education, work experience and project experience - Add 3-layer text denoising pipeline inspired by SmartResume: Unicode whitespace normalization, random string filtering (tiktoken-based), and stricter source text validation - Add i18n support with separate Chinese/English prompt templates (resume_basic_info, resume_education, resume_work_exp, resume_project_exp, resume_system) under rag/prompts/ - Improve chunk construction: group related fields into semantic chunks (basic info, education, skills, work overview), redundantly embed identity fields for retrieval, and assign logical ordering coordinates - Fix work experience year calculation, resume sorting, and table handling - Remove unused parameters (lines, line_positions) from _build_chunk_document - Clean up redundant code
|
@dosu 重新触发单元测试,数据库连接失败 |
|
抱歉,我没有权限触发 CI/CD 流水线或重新运行单元测试。 数据库连接失败通常是 CI 环境的临时问题。你可以尝试:
如果问题持续出现,可能需要检查 CI 配置中的数据库连接设置。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
|
@yingfeng 帮忙手动重新运行失败的测试任务 |
CI机器有问题,修复后手动运行 |
…n\nAdopt SmartResume's blackout approach for OCR text fusion:\n- Add _blackout_text_regions() to paint over metadata-extracted text\n areas on page images before OCR processing\n- Modify _extract_ocr_text() to accept meta_blocks and apply blackout\n before running OCR, so OCR only recognizes content metadata missed\n- Simplify _fuse_text_blocks() by removing IoU overlap calculation,\n since blackout eliminates duplication at source\n- Add SmartResume as submodule for reference\n\nThis approach is more reliable than post-hoc IoU deduplication because\nit prevents OCR from re-recognizing already extracted text regions,\navoiding partial overlap and threshold sensitivity issues.
一、总体指标
二、字段提取率
|
|
这个测试结果相比之前的纯正则方案有显著提升!🎉 关键对比(正则 → LLM辅助):
亮点:
性能方面:
整体来看,SmartResume Pipeline 的优化效果非常明显,特别是在复杂语义字段的提取上。期待 CI 修复后的测试通过! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
|
@yongtenglei 是否还有其他问题,目前已经针对不同的字段识别以及切分进行了批量测试 |
…rtResume Pipeline) (infiniflow#13255) Core optimizations (refer to arXiv:2510.09722): 1. PDF text fusion: Metadata + OCR dual-path extraction and fusion 2. Page-aware reconstruction: YOLOv10 page segmentation + hierarchical sorting + line number indexing 3. Parallel task decomposition: Basic information/work experience/educational background three-way parallel LLM extraction 4. Index pointer mechanism: LLM returns a range of line numbers instead of generating the full text, reducing the illusion of full text. --------- Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Yingfeng <[email protected]>
…rtResume Pipeline) (infiniflow#13255) Core optimizations (refer to arXiv:2510.09722): 1. PDF text fusion: Metadata + OCR dual-path extraction and fusion 2. Page-aware reconstruction: YOLOv10 page segmentation + hierarchical sorting + line number indexing 3. Parallel task decomposition: Basic information/work experience/educational background three-way parallel LLM extraction 4. Index pointer mechanism: LLM returns a range of line numbers instead of generating the full text, reducing the illusion of full text. --------- Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Yingfeng <[email protected]>
…rtResume Pipeline) (infiniflow#13255) Core optimizations (refer to arXiv:2510.09722): 1. PDF text fusion: Metadata + OCR dual-path extraction and fusion 2. Page-aware reconstruction: YOLOv10 page segmentation + hierarchical sorting + line number indexing 3. Parallel task decomposition: Basic information/work experience/educational background three-way parallel LLM extraction 4. Index pointer mechanism: LLM returns a range of line numbers instead of generating the full text, reducing the illusion of full text. --------- Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Aron.Yao <[email protected]> Co-authored-by: Yingfeng <[email protected]>




Core optimizations (refer to arXiv:2510.09722):
PDF text fusion: Metadata + OCR dual-path extraction and fusion
Page-aware reconstruction: YOLOv10 page segmentation + hierarchical sorting + line number indexing
Parallel task decomposition: Basic information/work experience/educational background three-way parallel LLM extraction
Index pointer mechanism: LLM returns a range of line numbers instead of generating the full text, reducing the illusion of full text.