Merged
Conversation
Contributor
审阅者指南(在小型 PR 上折叠)审阅者指南Excel RAG 解析器现在输出多行文本,而不是用分号分隔的字段,从而提高了可读性,并在存在工作表名称时将其保留在独立的一行。 Excel 解析器行到文本格式变更的流程图flowchart TD
A[Read Excel sheet row] --> B[Collect values into fields list]
B --> C{Has_header_only_or_data_rows}
C --> D[Data rows: build fields per row]
C --> E[Header only: use header_fields]
D --> F[Join fields with newline separator]
E --> F
F --> G{Sheetname_is_generic_sheet}
G -- Yes --> H[Append nothing]
G -- No --> I[Append newline then em_dash then sheetname]
H --> J[Append formatted line to result list]
I --> J
J --> K[Return multiline text for RAG consumption]
文件级变更
提示与命令与 Sourcery 交互
自定义你的使用体验访问你的 控制面板 以:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideExcel RAG parser now outputs multi-line text instead of semicolon-separated fields, improving readability and keeping sheet names on their own line when present. Flow diagram for Excel parser row-to-text formatting changeflowchart TD
A[Read Excel sheet row] --> B[Collect values into fields list]
B --> C{Has_header_only_or_data_rows}
C --> D[Data rows: build fields per row]
C --> E[Header only: use header_fields]
D --> F[Join fields with newline separator]
E --> F
F --> G{Sheetname_is_generic_sheet}
G -- Yes --> H[Append nothing]
G -- No --> I[Append newline then em_dash then sheetname]
H --> J[Append formatted line to result list]
I --> J
J --> K[Return multiline text for RAG consumption]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - 我在这里给出了一些整体反馈:
- 在仅包含表头的分支中,你仍然使用前置空格(
" ——")而不是换行符("\n——")来追加工作表名称,这与主分支不一致,并且在你切换到按行分隔输出之后,这很可能也不是你真正想要的行为。
给 AI 代理的提示
Please address the comments from this code review:
## Overall Comments
- In the header-only branch you still append the sheet name with a leading space (`" ——"`) rather than a newline (`"\n——"`), which is inconsistent with the main branch and likely not what you intended after switching to newline-separated output.帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈来改进后续的代码审查。
Original comment in English
Hey - I've left some high level feedback:
- In the header-only branch you still append the sheet name with a leading space (
" ——") rather than a newline ("\n——"), which is inconsistent with the main branch and likely not what you intended after switching to newline-separated output.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the header-only branch you still append the sheet name with a leading space (`" ——"`) rather than a newline (`"\n——"`), which is inconsistent with the main branch and likely not what you intended after switching to newline-separated output.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
replace semicolon separators with newlines in Excel parser output
Summary by Sourcery
错误修复:
Original summary in English
Summary by Sourcery
Bug Fixes: