Dify DeepWiki 中文译文
应用编排与外部知识接入 DeepWiki 中文译文目录页,作为对应 2.5 项目要点页的章节入口。本页集中呈现项目定位、核心模块、章节索引和源码线索;具体中文全文请进入独立章节页阅读。
用途说明:本页仅用于内部技术调研、方案比较和工程学习;原始内容与最终核对仍以 DeepWiki 链接为准。
项目定位
应用编排与外部知识接入
面向应用、工作流、知识接入和工具调用。
应用编排外部知识接口流程日志权限隔离
核心模块
测试、发布与运维
42 个章节涉及此模块。优先查看下列章节,再回到完整目录按 ID 阅读。
章节筛选
显示 68 / 68 项
没有匹配章节。可清除筛选后再查看完整目录。
章节目录
| ID | 章节 | 模块 | 源码线索 | 状态 |
|---|---|---|---|---|
| 1 | Dify 介绍 | 系统架构、安装与启动、存储与持久化 | README.md api/.env.example api/Dockerfile |
全文译文 |
| 2 | 系统架构总览 | 系统架构、存储与持久化、配置治理 | api/.env.example api/Dockerfile api/app.py |
全文译文 |
| 2.1 | 服务拓扑与 Docker Compose 栈 | 存储与持久化、测试、发布与运维、配置治理 | api/.env.example api/Dockerfile api/app.py |
全文译文 |
| 2.2 | 核心数据模型与领域实体 | 文档对象与元数据、检索、召回与索引、模型调用与提供方适配 | api/controllers/console/app/workflow_comment.py api/controllers/console/app/workflow_run.py api/fields/annotation_fields.py |
全文译文 |
| 2.3 | 应用类型与执行模式 | 工作流与编排、智能体运行时、入库与解析 | api/core/app/app_config/entities.py api/core/app/apps/advanced_chat/app_config_manager.py api/core/app/apps/advanced_chat/app_generator.py |
全文译文 |
| 2.4 | 配置管理系统 | 配置治理、存储与持久化、文档对象与元数据 | api/.env.example api/Dockerfile api/app.py |
全文译文 |
| 3 | 部署与操作 | 测试、发布与运维、工作流与编排、安装与启动 | api/.env.example api/Dockerfile api/app.py |
全文译文 |
| 3.1 | Docker 构建流程与多阶段镜像 | 测试、发布与运维、配置治理、文档对象与元数据 | .github/labeler.yml .github/workflows/api-tests.yml .github/workflows/autofix.yml |
全文译文 |
| 3.2 | 环境配置与运行时模式 | 工作流与编排、配置治理、接口与服务契约 | .devcontainer/Dockerfile .devcontainer/devcontainer.json .devcontainer/post_create_command.sh |
全文译文 |
| 3.3 | 存储后端与向量数据库配置 | 检索、召回与索引、系统架构、测试、发布与运维 | api/.env.example api/app.py api/app_factory.py |
全文译文 |
| 3.4 | 后台任务处理与 Celery | 工作流与编排、存储与持久化、系统架构 | api/commands/plugin.py api/commands/storage.py api/commands/system.py |
全文译文 |
| 4 | 知识库与 RAG 系统 | 检索、召回与索引、模型调用与提供方适配、图谱与关系 | api/controllers/console/app/annotation.py api/controllers/console/datasets/data_source.py api/controllers/console/datasets/datasets_document.py |
全文译文 |
| 4.1 | 数据集服务与文档管理 | 检索、召回与索引、测试、发布与运维、配置治理 | api/controllers/console/app/annotation.py api/controllers/console/datasets/data_source.py api/controllers/console/datasets/datasets_document.py |
全文译文 |
| 4.2 | 文档索引管线 | 系统架构、工作流与编排、文档对象与元数据 | api/core/indexing_runner.py api/core/rag/extractor/extract_processor.py api/core/rag/extractor/helpers.py |
全文译文 |
| 4.3 | 召回策略与元数据筛选 | 检索、召回与索引、系统架构、模型调用与提供方适配 | api/controllers/console/datasets/hit_testing_base.py api/controllers/service_api/dataset/hit_testing.py api/core/callback_handler/index_tool_callback_handler.py |
全文译文 |
| 4.4 | 向量数据库集成架构 | 检索、召回与索引、系统架构、安装与启动 | api/.env.example api/app.py api/app_factory.py |
全文译文 |
| 4.5 | 外部知识库集成 | 系统架构、测试、发布与运维、检索、召回与索引 | api/controllers/console/app/annotation.py api/controllers/console/datasets/data_source.py api/controllers/console/datasets/datasets_document.py |
全文译文 |
| 4.6 | 摘要索引生成 | 系统架构、界面与交互、工作流与编排 | .devcontainer/Dockerfile .devcontainer/devcontainer.json .devcontainer/post_create_command.sh |
全文译文 |
| 4.7 | RAG 管线工作流 | 图谱与关系、工作流与编排、测试、发布与运维 | api/controllers/console/app/app_import.py api/controllers/console/app/workflow_draft_variable.py api/controllers/console/datasets/rag_pipeline/rag_pipeline.py |
全文译文 |
| 5 | 工作流引擎与节点执行 | 系统架构、测试、发布与运维、接口与服务契约 | api/.importlinter api/core/app/file_access/__init__.py api/core/app/file_access/controller.py |
全文译文 |
| 5.1 | 工作流定义与执行模型 | 图谱与关系、智能体运行时、工作流与编排 | api/core/workflow/workflow_entry.py api/models/account.py api/models/api_based_extension.py |
全文译文 |
| 5.2 | 节点工厂与依赖注入 | 接口与服务契约、模型调用与提供方适配、图谱与关系 | api/.importlinter api/core/app/file_access/__init__.py api/core/app/file_access/controller.py |
全文译文 |
| 5.3 | 大模型节点实现 | 入库与解析、记忆与上下文、模型调用与提供方适配 | api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py api/core/agent/cot_chat_agent_runner.py |
全文译文 |
| 5.4 | HTTP 请求与代码执行节点 | 认证、权限与安全、接口与服务契约、配置治理 | api/.importlinter api/core/app/file_access/__init__.py api/core/app/file_access/controller.py |
全文译文 |
| 5.5 | 知识召回节点 | 系统架构、检索、召回与索引、界面与交互 | api/controllers/console/datasets/hit_testing_base.py api/controllers/service_api/dataset/hit_testing.py api/core/callback_handler/index_tool_callback_handler.py |
全文译文 |
| 5.6 | 人工输入节点与暂停恢复机制 | 工作流与编排、系统架构、界面与交互 | api/controllers/console/app/agent.py api/controllers/console/app/ops_trace.py api/controllers/console/app/workflow_trigger.py |
全文译文 |
| 5.7 | 工作流测试与模拟系统 | 系统架构、测试、发布与运维、接口与服务契约 | api/.env.example api/.importlinter api/app.py |
全文译文 |
| 6 | LLM 集成与模型管理 | 模型调用与提供方适配、配置治理、入库与解析 | api/controllers/console/app/generator.py api/core/agent/output_parser/cot_output_parser.py api/core/app/app_config/easy_ui_based_app/model_config/converter.py |
全文译文 |
| 6.1 | 提供方与模型架构 | 系统架构、模型调用与提供方适配、测试、发布与运维 | api/core/agent/output_parser/cot_output_parser.py api/core/app/app_config/easy_ui_based_app/model_config/converter.py api/core/app/llm/model_access.py |
全文译文 |
| 6.2 | 模型调用管线 | 模型调用与提供方适配、入库与解析、系统架构 | api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py api/core/agent/cot_chat_agent_runner.py |
全文译文 |
| 6.3 | 配额管理与额度池 | 系统架构、测试、发布与运维、界面与交互 | api/controllers/console/__init__.py api/controllers/console/admin.py api/controllers/console/billing/billing.py |
全文译文 |
| 7 | 工具与插件生态 | 接口与服务契约、系统架构、智能体运行时 | api/controllers/console/workspace/tool_providers.py api/core/entities/knowledge_entities.py api/core/entities/provider_entities.py |
全文译文 |
| 7.1 | 工具提供方类型与架构 | 智能体运行时、接口与服务契约、界面与交互 | api/controllers/console/workspace/tool_providers.py api/core/mcp/client/sse_client.py api/core/mcp/client/streamable_client.py |
全文译文 |
| 7.2 | 内置与 API 工具集成 | 系统架构、接口与服务契约、界面与交互 | api/controllers/console/workspace/tool_providers.py api/core/mcp/client/sse_client.py api/core/mcp/client/streamable_client.py |
全文译文 |
| 7.3 | MCP 协议集成 | 认证、权限与安全、接口与服务契约、系统架构 | api/controllers/console/workspace/tool_providers.py api/core/mcp/client/sse_client.py api/core/mcp/client/streamable_client.py |
全文译文 |
| 7.4 | 插件守护进程与执行环境 | 接口与服务契约、系统架构、界面与交互 | api/core/entities/knowledge_entities.py api/core/entities/provider_entities.py api/core/helper/marketplace.py |
全文译文 |
| 8 | 多租户与安全 | 认证、权限与安全、工作流与编排、系统架构 | api/controllers/console/auth/data_source_oauth.py api/controllers/console/auth/email_register.py api/controllers/console/auth/error.py |
全文译文 |
| 8.1 | 租户模型与资源隔离 | 测试、发布与运维、界面与交互、认证、权限与安全 | api/controllers/console/auth/data_source_oauth.py api/controllers/console/auth/email_register.py api/controllers/console/auth/error.py |
全文译文 |
| 8.2 | 认证方法与流程 | 认证、权限与安全、系统架构、界面与交互 | api/controllers/console/auth/data_source_oauth.py api/controllers/console/auth/email_register.py api/controllers/console/auth/error.py |
全文译文 |
| 8.3 | 基于角色的访问控制 | 认证、权限与安全、接口与服务契约、界面与交互 | api/controllers/console/__init__.py api/controllers/console/admin.py api/controllers/console/auth/data_source_oauth.py |
全文译文 |
| 8.4 | 工作空间与成员管理 | 系统架构、认证、权限与安全、配置治理 | api/controllers/console/auth/data_source_oauth.py api/controllers/console/auth/email_register.py api/controllers/console/auth/error.py |
全文译文 |
| 8.5 | 账号生命周期管理 | 界面与交互、认证、权限与安全、系统架构 | api/controllers/console/app/error.py api/controllers/console/auth/data_source_oauth.py api/controllers/console/auth/email_register.py |
全文译文 |
| 9 | 服务 API | 接口与服务契约、测试、发布与运维、工作流与编排 | api/controllers/common/controller_schemas.py api/controllers/console/app/audio.py api/controllers/console/explore/audio.py |
全文译文 |
| 9.1 | 接口架构与请求流程 | 认证、权限与安全、测试、发布与运维、工作流与编排 | api/controllers/console/__init__.py api/controllers/console/admin.py api/controllers/console/apikey.py |
全文译文 |
| 9.2 | 聊天与补全 API | 接口与服务契约、工作流与编排、测试、发布与运维 | api/controllers/common/controller_schemas.py api/controllers/console/app/advanced_prompt_template.py api/controllers/console/app/audio.py |
全文译文 |
| 9.3 | 工作流执行 API | 接口与服务契约、文档对象与元数据、工作流与编排 | api/AGENTS.md api/controllers/API_SCHEMA_GUIDE.md api/controllers/common/schema.py |
全文译文 |
| 9.4 | 文件上传与管理 API | 接口与服务契约、文档对象与元数据、系统架构 | api/controllers/common/errors.py api/controllers/console/files.py api/controllers/console/remote_files.py |
全文译文 |
| 9.5 | 会话与反馈 API | 工作流与编排、接口与服务契约、测试、发布与运维 | api/controllers/common/controller_schemas.py api/controllers/console/app/advanced_prompt_template.py api/controllers/console/app/audio.py |
全文译文 |
| 9.6 | 高级聊天与智能体 API | 工作流与编排、文档对象与元数据、智能体运行时 | api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py api/core/agent/cot_chat_agent_runner.py |
全文译文 |
| 9.7 | 客户端 SDKs | 接口与服务契约、界面与交互、测试、发布与运维 | .agents/skills/component-refactoring/SKILL.md .agents/skills/frontend-testing/SKILL.md .agents/skills/frontend-testing/references/checklist.md |
全文译文 |
| 10 | Web 前端架构 | 界面与交互、测试、发布与运维、工作流与编排 | .github/actions/setup-web/action.yml api/Dockerfile package.json |
全文译文 |
| 10.1 | 前端构建系统与配置 | 界面与交互、配置治理、测试、发布与运维 | .github/actions/setup-web/action.yml api/Dockerfile package.json |
全文译文 |
| 10.2 | 聊天接口与消息交互 | 界面与交互、系统架构、评测、反馈与人工复核 | web/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx web/app/components/app/configuration/debug/debug-with-single-model/index.tsx web/app/components/app/log/list.tsx |
全文译文 |
| 10.3 | 工作流节点 UI 组件 | 界面与交互、文档对象与元数据、系统架构 | api/core/plugin/impl/dynamic_select.py web/app/components/base/chat/chat/answer/workflow-process.tsx web/app/components/base/prompt-editor/__tests__/hooks.spec.tsx |
全文译文 |
| 11 | 开发与 CI/CD | 测试、发布与运维、安装与启动、工作流与编排 | .devcontainer/Dockerfile .devcontainer/README.md .devcontainer/devcontainer.json |
全文译文 |
| 11.1 | 开发环境设置 | 安装与启动、测试、发布与运维、工作流与编排 | .devcontainer/Dockerfile .devcontainer/README.md .devcontainer/devcontainer.json |
全文译文 |
| 11.2 | 测试基础设施与策略 | 测试、发布与运维、安装与启动、系统架构 | .github/labeler.yml .github/workflows/api-tests.yml .github/workflows/autofix.yml |
全文译文 |
| 11.3 | CI 管线架构 | 测试、发布与运维、工作流与编排、安装与启动 | .github/labeler.yml .github/workflows/api-tests.yml .github/workflows/autofix.yml |
全文译文 |
| 11.4 | 代码质量与风格检查 | 界面与交互、系统架构、测试、发布与运维 | .github/actions/setup-web/action.yml .github/labeler.yml .github/workflows/api-tests.yml |
全文译文 |
| 11.5 | 自动修复与代码现代化 | 安装与启动、测试、发布与运维、文档对象与元数据 | .github/labeler.yml .github/workflows/api-tests.yml .github/workflows/autofix.yml |
全文译文 |
| 11.6 | AI 编码智能体技能 | 界面与交互、系统架构、测试、发布与运维 | .agents/skills/component-refactoring/SKILL.md .agents/skills/frontend-testing/SKILL.md .agents/skills/frontend-testing/references/checklist.md |
全文译文 |
| 12 | 可观测性与 LLMOps | 测试、发布与运维、界面与交互、系统架构 | api/core/ops/entities/config_entity.py api/core/ops/entities/trace_entity.py api/core/ops/ops_trace_manager.py |
全文译文 |
| 12.1 | 跟踪管理器与提供方集成 | 系统架构、测试、发布与运维、工作流与编排 | api/core/ops/entities/config_entity.py api/core/ops/entities/trace_entity.py api/core/ops/ops_trace_manager.py |
全文译文 |
| 12.2 | OpenTelemetry 与 Sentry 集成 | 接口与服务契约、测试、发布与运维、安装与启动 | api/.env.example api/app.py api/app_factory.py |
全文译文 |
| 14 | Dify 智能体运行时 | 系统架构、智能体运行时、记忆与上下文 | README.md api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py |
全文译文 |
| 14.1 | Agenton 框架与分层架构 | 智能体运行时、记忆与上下文、模型调用与提供方适配 | api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py api/core/agent/cot_chat_agent_runner.py |
全文译文 |
| 14.2 | Dify 智能体服务端与运行时 API | 智能体运行时、工作流与编排、记忆与上下文 | api/core/agent/base_agent_runner.py api/core/agent/cot_agent_runner.py api/core/agent/cot_chat_agent_runner.py |
全文译文 |
| 13 | 术语表 | 工作流与编排、认证、权限与安全、安装与启动 | api/.env.example api/app.py api/app_factory.py |
全文译文 |