Skip to content

docs(ingestion): correct stale parser-component scope comment - #18147

Merged
yuzhichang merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/parser-component-scope-comment
Aug 12, 2026
Merged

yuzhichang merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/parser-component-scope-comment

Conversation

@xugangqiang

Copy link
Copy Markdown
Contributor

Summary

Correct the stale SCOPE comment in internal/ingestion/component/parser.go that claimed all Go parser counterparts are skeletons printing to stdout and returning nil.

What changed

  • The parser package is no longer skeleton-only. pdf/docx/txt run their real parsers (including the cgo-gated office variants via office_oxide), matching the ingestor's supported types in cmd/ragflow_server.go (ingestion.NewIngestor(..., []string{"pdf", "docx", "txt"})).
  • The comment now states that ported families run their real parsers, and only UNPORTED families fall through to the raw-text path — instead of claiming every Go counterpart is a skeleton.

Verification

  • cmd/ragflow_server.go:567 wires the ingestor with []string{"pdf", "docx", "txt"} (reference added to the comment).
  • internal/parser/parser/ contains real implementations (text_parser.go, markdown_parser.go, html_parser.go, docx_parser.go, etc.), not stdout-printing stubs.
  • Docs-only change; no logic touched. Pre-commit hooks (gofmt / check-json / etc.) pass.

Test plan

None required — comment-only change. Build/gofmt clean.

🤖 Generated with CodeBuddy Code

The parser package is no longer skeleton-only: pdf/docx/txt run their
real parsers (incl. cgo-gated office variants via office_oxide), matching
the ingestor's supportedTypes in cmd/ragflow_server.go
(NewIngestor(..., ["pdf","docx","txt"])). Update the SCOPE comment to say
ported families run real parsers and only UNPORTED families fall through
to the raw-text path, instead of claiming all Go counterparts are
skeletons that print to stdout.

Co-authored-by: CodeBuddy <[email protected]>
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c58a717-66ca-4332-9a62-6c289e9a467e

📥 Commits

Reviewing files that changed from the base of the PR and between 0c225b0 and ab7d57c.

📒 Files selected for processing (1)
  • internal/ingestion/component/parser.go

📝 Walkthrough

Walkthrough

The parser package documentation now identifies live PDF, DOCX, and TXT parser families, including office-oxide variants. It also documents raw-text fallback behavior for unported inputs.

Changes

Parser documentation

Layer / File(s) Summary
Parser family and fallback documentation
internal/ingestion/component/parser.go
The package documentation lists live parser families and explains UTF-8 raw-text fallback with form-feed page splitting for unported inputs.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: jinhai-cn, yuzhichang

Poem

I’m a rabbit with notes in my paws,
Parsing clear rules without flaws.
PDF, DOCX, TXT in a row,
Raw text steps in where ports do not grow.
Form-feeds mark pages—off we go!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the documentation fix for the stale parser-component scope comment.
Description check ✅ Passed The description includes the required summary and clearly documents the change, verification, and test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yuzhichang
yuzhichang merged commit a4dbd89 into infiniflow:main Aug 12, 2026
3 checks passed
@xugangqiang
xugangqiang deleted the fix/parser-component-scope-comment branch August 12, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants