[RFC] OpenViking 内容解析插件化架构 #1142
MaojiaSheng
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
updated today |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
OpenViking Parse 模块插件化重构方案
一、现状分析
1.1 当前架构
1.2 存在的问题
registry.py手动 import 并注册每个 parser二、重构目标
三、新架构设计
3.1 目录结构
3.2 核心类设计
四、迁移策略
4.1 阶段一:基础设施(兼容层)
保持
ParserRegistryAPI 不变,内部使用新的插件系统:4.2 阶段二:迁移内置 Parsers
以 MarkdownParser 为例,迁移为插件:
4.3 阶段三:可选 Parser 独立化
FeishuParser 作为可选插件示例:
五、PluginManager 实现
六、迁移检查清单
基础设施层
plugin_base.pyplugin_manager.pyregistry.py为兼容层内置 Parsers 迁移(按优先级)
可选 Parsers 独立化
文档和示例
CONTRIBUTING.md七、向后兼容保证
ParserRegistry类接口保持完全一致from openviking.parse import parse, get_registry继续工作parsers/目录保留,新系统优先用插件八、收益
Beta Was this translation helpful? Give feedback.
All reactions