Skip to content

Commit 25584e3

Browse files
committed
fix: 修复文档解析器中的后端参数设置
1 parent 02c68a0 commit 25584e3

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

docs/changelog/roadmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
## Next
1313

1414
- [x] 修改现有的智能体Demo,并尽量将默认助手的特性兼容到 LangGraph 的 [`create_agent`](https://docs.langchain.com/oss/python/langchain/agents)
15-
- [ ] 基于 create_agent 创建 SQL Viewer 智能体 <Badge type="info" text="0.3.5" />
16-
- [ ] 优化 MCP 逻辑,支持 common + special 创建方式 <Badge type="info" text="0.3.5" />
15+
- [x] 基于 create_agent 创建 SQL Viewer 智能体 <Badge type="info" text="0.3.5" />
16+
- [x] 优化 MCP 逻辑,支持 common + special 创建方式 <Badge type="info" text="0.3.5" />
1717
- [ ] 添加对于上传文件的支持
1818
- [ ] 统一图谱数据结构,优化可视化方式 [#298](https://github.com/xerrors/Yuxi-Know/issues/298) <Badge type="info" text="0.4" />
1919
- [ ] 集成智能体评估,首先使用命令行来实现,然后考虑放在 UI 里面展示

src/plugins/mineru_parser.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,14 @@ def process_file(self, file_path: str, params: dict | None = None) -> str:
116116
f"不支持的文件类型: {file_ext}", self.get_service_name(), "unsupported_file_type"
117117
)
118118

119-
# 先检查服务健康状态
120-
health = self.check_health()
121-
if health["status"] != "healthy":
122-
raise DocumentParserException(
123-
f"MinerU 服务不可用: {health['message']}", self.get_service_name(), health["status"]
124-
)
125-
126119
# 解析参数
127120
params = params or {}
128121

129122
# 构建请求数据 - 只保留核心参数
130123
data = {
131124
"lang_list": params.get("lang_list", ["ch"]),
132-
"backend": params.get("backend", "pipeline"),
125+
"backend": params.get("backend", "vlm-http-client"),
133126
"parse_method": params.get("parse_method", "auto"),
134-
"formula_enable": params.get("formula_enable", True),
135-
"table_enable": params.get("table_enable", True),
136-
"start_page_id": params.get("start_page_id", 0),
137-
"end_page_id": params.get("end_page_id", 99999),
138127
# 固定返回 markdown 格式
139128
"return_md": True,
140129
}

web/src/components/TaskCenterDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a-progress
6060
:percent="Math.round(task.progress || 0)"
6161
:status="progressStatus(task.status)"
62-
stroke-width="6"
62+
stroke-width=6
6363
/>
6464
<!-- <span class="task-card-progress-value">{{ Math.round(task.progress || 0) }}%</span> -->
6565
</div>

web/src/components/ToolCallingResult/KnowledgeBaseResult.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
:percent="getPercent(selectedChunk.data.score)"
7878
:stroke-color="getScoreColor(selectedChunk.data.score)"
7979
:show-info="false"
80-
stroke-width="6"
80+
stroke-width=6
8181
/>
8282
</div>
8383
<div v-if="selectedChunk.data.rerank_score" class="score-card">
@@ -87,7 +87,7 @@
8787
:percent="getPercent(selectedChunk.data.rerank_score)"
8888
:stroke-color="getScoreColor(selectedChunk.data.rerank_score)"
8989
:show-info="false"
90-
stroke-width="6"
90+
stroke-width=6
9191
/>
9292
</div>
9393
</div>

0 commit comments

Comments
 (0)