fix(backend): 修复无题号题目分割丢失#132
Open
xiaozhejiya wants to merge 1 commit into
Open
Conversation
- 调整分题提示词,要求保留 primary 页内无题号但有实质内容的公式、图片和计算表达式 - 移除同题号下按 section_title 直接丢弃无 section 题目的去重规则,改为统一按内容相似度判重 - 限制 leading image 修复不跨 section 移动,避免看图题图片被挪到上一题 - 验证 py_compile 与相关 workflow helper 测试通过
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
未编号-N。section_title直接丢弃无 section 题目的去重规则,统一按内容相似度判重。section_title移动,避免看图题图片被挪到上一题。验证
python -m py_compile backend/src/workflow.py backend/agents/error_correction/prompts.py backend/tests/test_workflow_helpers.pypython -m pytest backend/tests/test_workflow_helpers.py::TestDedupQuestions::test_same_id_unsectioned_different_content_is_kept backend/tests/test_workflow_helpers.py::TestDedupQuestions::test_sorted_output backend/tests/test_workflow_helpers.py::TestDedupQuestions::test_mixed_id_types_sorted backend/tests/test_workflow_helpers.py::TestFixLeadingImages -q