Skip to content

refactor: remove more python codes - #20306

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix698
Sep 28, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix698

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b4f783a4-3c20-4bb7-be42-d0384c167432

📥 Commits

Reviewing files that changed from the base of the PR and between 7c10224 and 2f44bf4.

⛔ Files ignored due to path filters (3)
  • deepdoc/parser/resume/entities/res/corp_baike_len.csv is excluded by !**/*.csv
  • deepdoc/parser/resume/entities/res/school.rank.csv is excluded by !**/*.csv
  • deepdoc/parser/resume/entities/res/schools.csv is excluded by !**/*.csv
📒 Files selected for processing (99)
  • agent/__init__.py
  • agent/canvas.py
  • agent/dsl_migration.py
  • agent/settings.py
  • api/__init__.py
  • api/channels/__init__.py
  • api/channels/bootstrap.py
  • api/channels/core/__init__.py
  • api/channels/core/base.py
  • api/channels/core/registry.py
  • api/channels/dingtalk/__init__.py
  • api/channels/dingtalk/channel.py
  • api/channels/discord/__init__.py
  • api/channels/discord/channel.py
  • api/channels/feishu/__init__.py
  • api/channels/feishu/channel.py
  • api/channels/line/__init__.py
  • api/channels/line/channel.py
  • api/channels/qqbot/__init__.py
  • api/channels/qqbot/channel.py
  • api/channels/targets.py
  • api/channels/telegram/__init__.py
  • api/channels/telegram/channel.py
  • api/channels/wecom/__init__.py
  • api/channels/wecom/channel.py
  • api/constants.py
  • api/db/__init__.py
  • api/db/db_models.py
  • api/db/db_utils.py
  • api/db/gaussdb_error_utils.py
  • api/db/init_data.py
  • api/db/reload_config_base.py
  • api/db/runtime_config.py
  • api/db/template_utils.py
  • api/ragflow_server.py
  • api/settings.py
  • api/validation.py
  • deepdoc/README.md
  • deepdoc/README_tr.md
  • deepdoc/README_zh.md
  • deepdoc/__init__.py
  • deepdoc/parser/__init__.py
  • deepdoc/parser/docling_parser.py
  • deepdoc/parser/docx_parser.py
  • deepdoc/parser/epub_parser.py
  • deepdoc/parser/excel_parser.py
  • deepdoc/parser/figure_parser.py
  • deepdoc/parser/html_parser.py
  • deepdoc/parser/json_parser.py
  • deepdoc/parser/markdown_parser.py
  • deepdoc/parser/mineru_parser.py
  • deepdoc/parser/mistral_parser.py
  • deepdoc/parser/monkeyocrv2_parser.py
  • deepdoc/parser/opendataloader_parser.py
  • deepdoc/parser/paddleocr_parser.py
  • deepdoc/parser/pdf_parser.py
  • deepdoc/parser/ppt_parser.py
  • deepdoc/parser/resume/__init__.py
  • deepdoc/parser/resume/entities/__init__.py
  • deepdoc/parser/resume/entities/corporations.py
  • deepdoc/parser/resume/entities/degrees.py
  • deepdoc/parser/resume/entities/industries.py
  • deepdoc/parser/resume/entities/regions.py
  • deepdoc/parser/resume/entities/res/corp.tks.freq.json
  • deepdoc/parser/resume/entities/res/corp_tag.json
  • deepdoc/parser/resume/entities/res/good_corp.json
  • deepdoc/parser/resume/entities/res/good_sch.json
  • deepdoc/parser/resume/entities/schools.py
  • deepdoc/parser/resume/step_one.py
  • deepdoc/parser/resume/step_two.py
  • deepdoc/parser/somark_parser.py
  • deepdoc/parser/tcadp_parser.py
  • deepdoc/parser/txt_parser.py
  • deepdoc/parser/utils.py
  • deepdoc/server/README.md
  • deepdoc/server/adapters/__init__.py
  • deepdoc/server/adapters/dla_adapter.py
  • deepdoc/server/adapters/ocr_adapter.py
  • deepdoc/server/adapters/tsr_adapter.py
  • deepdoc/server/deepdoc_server.py
  • deepdoc/server/docker_stubs.py
  • deepdoc/server/download_deps.py
  • deepdoc/server/endpoints/__init__.py
  • deepdoc/server/endpoints/dla_endpoint.py
  • deepdoc/server/endpoints/ocr_endpoint.py
  • deepdoc/server/endpoints/tsr_endpoint.py
  • deepdoc/server/pyproject.toml
  • deepdoc/vision/__init__.py
  • deepdoc/vision/layout_recognizer.py
  • deepdoc/vision/ocr.py
  • deepdoc/vision/operators.py
  • deepdoc/vision/postprocess.py
  • deepdoc/vision/recognizer.py
  • deepdoc/vision/seeit.py
  • deepdoc/vision/t_ocr.py
  • deepdoc/vision/t_recognizer.py
  • deepdoc/vision/table_structure_recognizer.py
  • deepdoc/vision/test_layout_garbage_gate.py
  • deepdoc/vision/test_ocr_score.py
💤 Files with no reviewable changes (63)
  • api/settings.py
  • deepdoc/parser/resume/entities/init.py
  • deepdoc/parser/resume/entities/res/good_sch.json
  • api/init.py
  • api/channels/feishu/init.py
  • agent/init.py
  • api/channels/discord/init.py
  • deepdoc/init.py
  • deepdoc/README_tr.md
  • api/db/reload_config_base.py
  • api/channels/line/channel.py
  • api/constants.py
  • deepdoc/parser/json_parser.py
  • deepdoc/parser/resume/init.py
  • api/channels/core/base.py
  • deepdoc/parser/resume/entities/corporations.py
  • api/channels/targets.py
  • api/db/init.py
  • deepdoc/parser/resume/entities/industries.py
  • api/channels/telegram/init.py
  • api/channels/feishu/channel.py
  • deepdoc/README_zh.md
  • deepdoc/parser/resume/entities/res/corp.tks.freq.json
  • api/channels/qqbot/init.py
  • api/channels/line/init.py
  • deepdoc/parser/paddleocr_parser.py
  • api/channels/wecom/init.py
  • agent/settings.py
  • deepdoc/README.md
  • api/channels/dingtalk/channel.py
  • api/db/init_data.py
  • api/db/template_utils.py
  • deepdoc/parser/resume/entities/regions.py
  • deepdoc/parser/resume/entities/res/good_corp.json
  • deepdoc/parser/resume/entities/degrees.py
  • api/channels/dingtalk/init.py
  • deepdoc/parser/epub_parser.py
  • api/validation.py
  • api/channels/bootstrap.py
  • deepdoc/parser/init.py
  • deepdoc/parser/mistral_parser.py
  • api/ragflow_server.py
  • deepdoc/parser/excel_parser.py
  • deepdoc/parser/mineru_parser.py
  • api/channels/qqbot/channel.py
  • api/channels/core/registry.py
  • api/channels/telegram/channel.py
  • api/channels/discord/channel.py
  • api/channels/wecom/channel.py
  • deepdoc/parser/monkeyocrv2_parser.py
  • deepdoc/parser/opendataloader_parser.py
  • deepdoc/parser/docx_parser.py
  • api/db/runtime_config.py
  • agent/dsl_migration.py
  • deepdoc/parser/markdown_parser.py
  • api/db/db_utils.py
  • deepdoc/parser/html_parser.py
  • deepdoc/parser/pdf_parser.py
  • deepdoc/parser/docling_parser.py
  • api/db/gaussdb_error_utils.py
  • agent/canvas.py
  • deepdoc/parser/figure_parser.py
  • deepdoc/parser/ppt_parser.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The PR deletes Agent workflow code, channel integrations, API and database runtime modules, and DeepDoc parsers, resume processing, entity data, and documentation.

Changes

Agent workflows

Layer / File(s) Summary
Agent workflow and DSL removal
agent/canvas.py, agent/dsl_migration.py, agent/settings.py, agent/__init__.py
Deletes Graph and Canvas, DSL normalization, Agent constants, and the package initializer.

Channel integrations

Layer / File(s) Summary
Channel contracts and registry
api/channels/core/*
Deletes channel message structures, the abstract Channel class, and channel registration and construction functions.
Provider channel implementations
api/channels/{dingtalk,discord,feishu,line,qqbot,telegram,wecom}/*
Deletes the seven provider channel implementations and their package imports.
Channel startup and message routing
api/channels/bootstrap.py, api/channels/targets.py
Deletes channel startup and configuration handling, message routing, shutdown cleanup, and Agent-target validation.

API and database runtime

Layer / File(s) Summary
Runtime configuration and API declarations
api/__init__.py, api/constants.py, api/settings.py, api/db/__init__.py, api/db/reload_config_base.py, api/db/runtime_config.py, api/validation.py
Deletes API constants, database declarations and runtime configuration helpers, and Python and NLTK validation.
Database helpers and initialization
api/db/db_utils.py, api/db/gaussdb_error_utils.py, api/db/init_data.py, api/db/template_utils.py
Deletes database insertion, query, and error-classification helpers; initialization and seeding routines; and canvas template normalization.
Server startup and lifecycle
api/ragflow_server.py
Deletes server startup, CLI handling, background-service management, signal handling, and shutdown behavior.

DeepDoc parsers and resume data

Layer / File(s) Summary
Document parsers and package exports
deepdoc/__init__.py, deepdoc/parser/__init__.py, deepdoc/parser/{docx,epub,excel,figure,html,json,markdown,ppt}_parser.py, deepdoc/README*
Deletes document-format parsers and parser exports, package-level type checking, and the English, Turkish, and Chinese READMEs.
PDF parsers and OCR integrations
deepdoc/parser/{pdf,docling,mineru,mistral,monkeyocrv2,opendataloader,paddleocr}_parser.py
Deletes the PDF parser and the Docling, MinerU, Mistral, MonkeyOCRv2, OpenDataLoader, and PaddleOCR implementations.
Resume processing and entity data
deepdoc/parser/resume/*
Deletes resume normalization and entity helpers, plus corporation, university, and organization term data.

Priority: ⬆️ High

Estimated code review effort: 4 (Complex) | ~60 minutes

Merge Risk: 🟠 High · up to 2f44b

Default Python server startup is blocked, although the Go deployment remains an alternative. Agent tests and textcode golden generation are also broken. Restore these workflows or explicitly retire and update them before merging.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request has no description, so it does not include the required Summary section or background context for the extensive removals. Add a Summary section that explains the purpose of removing the modules, the affected functionality, and any migration or compatibility impact for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately identifies the primary change: removal of substantial Python code and related modules.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
  • Fix all pre-merge checks with AI

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

A rabbit reads the deleted page,
And hops along the parser’s trail.
The channel bells have gone quiet,
While old workflow paths grow pale.
It tucks the changes in its burrow,
Then nibbles carrots by the rail.

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

@JinHai-CN
JinHai-CN marked this pull request as ready for review September 28, 2026 09:38
@JinHai-CN JinHai-CN added the ci Continue Integration label Sep 28, 2026
@JinHai-CN
JinHai-CN merged commit efbb800 into infiniflow:main Sep 28, 2026
6 checks passed
devYRPauli added a commit to devYRPauli/ragflow that referenced this pull request Sep 28, 2026
Main removed the Python server in infiniflow#20289 and infiniflow#20306. Take those
deletions, and drop the Python half of this change as well:
common/connector_credentials.py and its two tests import modules that
main no longer has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant