Repository navigation
fix(ingestion): remove broken built-in Resume pipeline - #18173
Conversation
The built-in Resume ingestion pipeline template hardcoded a deployment-specific LLM in its Extractor component (llm_id: THUDM/GLM-4.1V-9B-Thinking@SILICONFLOW, tenant_llm_id: 29). On any other deployment, parsing a file (e.g. PDF) with the Resume chunk method deterministically fails at the Extractor stage with: extractor: resolve model "THUDM/GLM-4.1V-9B-Thinking@SILICONFLOW": instance "default" lookup failed: record not found The template is an internally customized pipeline (deployment-specific model id plus a resume-specific extraction prompt) that cannot work as a generic built-in, so remove it along with its references: - drop template/ingestion_pipeline_resume.json from the embedded builtin registry, which also removes Resume from the front-end built-in chunk-method list (driven by GET /api/v1/pipelines) - drop ParserTypeResume from entity, the resume entries from the default tenant parser_ids lists, and the resume default parser config - remove resume-specific golden/integration tests pinned to the deleted template Verified: after the removal the built-in chunk-method list no longer offers Resume, and the same PDF parses successfully with the General method.
📝 WalkthroughWalkthroughThe resume parser type, default tenant mappings, built-in pipeline template, registry entry, and related integration and coverage tests were removed. The default user configuration retains the ChangesResume parser removal
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/admin/service.go`:
- Line 255: Remove the resume:Resume entry from the fallback parser
configuration in common/settings.py, alongside the default parser mapping used
when llm_settings["parsers"] is unset. Keep the remaining parser defaults
unchanged so all default configuration paths no longer register Resume.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d6e1d477-a841-4e57-bcb3-89c04095a069
📒 Files selected for processing (8)
internal/admin/service.gointernal/common/parser_config.gointernal/entity/dataset.gointernal/ingestion/pipeline/builtin_registry_test.gointernal/ingestion/pipeline/template/ingestion_pipeline_resume.jsoninternal/ingestion/pipeline/template_integration_test.gointernal/ingestion/task/pipeline_executor_defaults_test.gointernal/service/user.go
💤 Files with no reviewable changes (5)
- internal/ingestion/pipeline/builtin_registry_test.go
- internal/common/parser_config.go
- internal/ingestion/pipeline/template/ingestion_pipeline_resume.json
- internal/entity/dataset.go
- internal/ingestion/pipeline/template_integration_test.go
| var ttsModel *string = nil | ||
| var ocrModel *string = nil | ||
| parserIDs := "naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,email:Email" | ||
| parserIDs := "naive:General,qa:Q&A,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,email:Email" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Remove resume:Resume from the remaining default configuration.
Line 255 removes Resume from the Go-created tenant configuration, but the supplied common/settings.py:260-263 fallback still contains resume:Resume. When llm_settings["parsers"] is unset, that fallback can still register Resume and expose the broken parser.
Remove the same entry from common/settings.py so all default configuration paths satisfy the PR objective.
Suggested fix
- "parsers", "naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,email:Email,tag:Tag"
+ "parsers", "naive:General,qa:Q&A,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,email:Email,tag:Tag"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/admin/service.go` at line 255, Remove the resume:Resume entry from
the fallback parser configuration in common/settings.py, alongside the default
parser mapping used when llm_settings["parsers"] is unset. Keep the remaining
parser defaults unchanged so all default configuration paths no longer register
Resume.
wangq8
left a comment
There was a problem hiding this comment.
Thanks for catching and cleaning this up. The hardcoded deployment-specific LLM (THUDM/GLM-4.1V-9B-Thinking@SILICONFLOW + tenant_llm_id: 29) makes the built-in Resume template a guaranteed failure on any deployment without that exact model — this is a real bug and removing it is the right call.
Cleanup is thorough:
- Template JSON deleted
ParserTypeResumeconstant removed fromdataset.go"resume"entry removed from parser config mapresume:Resumestripped from bothadmin/service.go(CreateUser) andservice/user.go(Register) parser ID lists- Builtin registry test golden updated
- Integration test + golden component params test removed
- The all-templates smoke test globs the template dir, so it adapts automatically — no coverage gap
One thing to note (not blocking): Existing tenants/datasets that had parser_id="resume" will now get a "method not found" error instead of the confusing LLM resolution error. This is strictly better (actionable failure vs silent confusion), but might be worth a brief mention in release notes so self-hosted deployments know to switch affected datasets to the General method.
Nice clean PR — LGTM.
Summary
The built-in Resume ingestion pipeline template (
internal/ingestion/pipeline/template/ingestion_pipeline_resume.json) hardcoded a deployment-specific LLM in its Extractor component (llm_id: THUDM/GLM-4.1V-9B-Thinking@SILICONFLOW,tenant_llm_id: 29). On any other deployment, parsing a file (e.g. a PDF) with the Resume chunk method deterministically fails at the Extractor stage:Reproduced on a fresh deployment: upload a PDF to a dataset using the built-in Resume method, run parsing, and the task always fails with the error above. The template is an internally customized pipeline (a deployment-specific model id plus a resume-specific extraction prompt) that cannot work as a generic built-in, so this PR removes it along with its references:
ingestion_pipeline_resume.jsonfrom the embedded builtin registry. This also removes Resume from the front-end built-in chunk-method list, which is driven byGET /api/v1/pipelines.ParserTypeResumeconstant, theresume:Resumeentries in the default tenantparser_idslists (admin/user services), and theresumeentry in the default parser config map.Verification:
/api/v1/pipelinesresponse).build.sh --testpasses for the touched packages (internal/ingestion/...,internal/common,internal/admin,internal/service).