Files
012-kaopeilian/docs/规划/全链路联调/Ai工作流/dify/知识拆解工作流.md
111 998211c483 feat: 初始化考培练系统项目
- 从服务器拉取完整代码
- 按框架规范整理项目结构
- 配置 Drone CI 测试环境部署
- 包含后端(FastAPI)、前端(Vue3)、管理端

技术栈: Vue3 + TypeScript + FastAPI + MySQL
2026-01-24 19:33:28 +08:00

53 lines
956 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 知识拆解工作流
**工作流名称:** upload_knowldge
**功能:** 上传资料并提炼知识点
---
## 配置信息
**API端点**
```
URL: http://dify.ireborn.com.cn/v1/workflows/run
API Key: app-LZhZcMO6CiriLMOLB2PwUGHx
```
**请求参数:**
```json
{
"inputs": {
"file": {
"type": "document",
"transfer_method": "local_file",
"upload_file_id": "dify_file_id"
},
"course_name": "课程名称",
"course_id": "1",
"material_id": "16"
},
"response_mode": "streaming",
"user": "kaopeilian"
}
```
---
## 实现方式
### Streaming模式直接完成
- 使用 `response_mode: "streaming"`
- 后端完整处理SSE流至 `workflow_finished`
- 前端180秒超时等待最终状态
- 无需轮询
### 状态映射
- `running` → 分析中
- `succeeded` → 分析完成(刷新知识点)
- `failed` → 分析失败
- `stopped` → 分析已停止
---
**最后更新:** 2025-10-12