Repository navigation
docs(ingestion): correct stale parser-component scope comment - #18147
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe 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. ChangesParser documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
Summary
Correct the stale SCOPE comment in
internal/ingestion/component/parser.gothat claimed all Go parser counterparts are skeletons printing to stdout and returning nil.What changed
pdf/docx/txtrun their real parsers (including the cgo-gated office variants viaoffice_oxide), matching the ingestor's supported types incmd/ragflow_server.go(ingestion.NewIngestor(..., []string{"pdf", "docx", "txt"})).Verification
cmd/ragflow_server.go:567wires 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.Test plan
None required — comment-only change. Build/
gofmtclean.🤖 Generated with CodeBuddy Code