# Dify Enterprise Docs: Chinese 3.2.x ## 3.2.x ### 部署 - [部署准备](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/checklist.md) - [资源清单](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/resources-checklist.md) - [激活许可证](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/license-activation.md) - [验证 Dify 服务状态](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/verify-services-status.md) #### 环境部署 - [测试环境部署](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/test-production/testing-deployment.md) - [生产环境部署](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/test-production/production-deployment.md) - [Docker Compose](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/test-production/docker-compose.md) #### 高级配置 - [Dify Helm Chart](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/dify-helm-chart.md) - [容器镜像仓库](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/container-registry.md) - [容器镜像仓库(插件)](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/container-registry-for-plugins.md) - [持久化存储](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/persistent-storage.md) - [Postgresql 数据库](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/postgresql-database.md) - [Redis](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/redis.md) - [离线部署指南](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/offline-deployment.md) - [RAG](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/rag.md) - [性能调优](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/performance.md) - [邮件提供商](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/email-provider.md) - [文件上传](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/file-upload.md) - [Nginx Ingress 控制器](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/nginx-ingress-controller.md) - [域名和 SSL 证书](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/domain-and-ssl-certificate.md) - [插件调试](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/plugin-debug.md) - [环境变量说明](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/environment-variables.md) ##### 向量数据库 - [向量数据库简介](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/vector-database.md) - [Qdrant 单节点](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/qdrant/single-node.md) - [Qdrant 集群部署](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/advanced-configuration/qdrant/qdrant-cluster.md) #### 云基础设施 - [Azure POC 基础设施设置](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/cloud-infrastructure/azure-poc-infra-setup.md) - [AWS 部署指南](https://enterprise-docs.dify.ai/zh/3.2.x/deploy/cloud-infrastructure/aws-setup.md) ### 管理 - [工作区管理](https://enterprise-docs.dify.ai/zh/3.2.x/administer/workspace-management.md) - [插件安装策略](https://enterprise-docs.dify.ai/zh/3.2.x/administer/plugins-management.md) - [完全删除插件](https://enterprise-docs.dify.ai/zh/3.2.x/administer/remove-plugin.md) - [企业级 APIs](https://enterprise-docs.dify.ai/zh/3.2.x/administer/admin-apis.md): 要求 Dify 企业版版本 ≥ v2.2.0 - [审计日志](https://enterprise-docs.dify.ai/zh/3.2.x/administer/audit-log.md) - [品牌设置](https://enterprise-docs.dify.ai/zh/3.2.x/administer/branding.md) - [常见问题](https://enterprise-docs.dify.ai/zh/3.2.x/administer/faq.md) #### 成员管理 - [成员管理](https://enterprise-docs.dify.ai/zh/3.2.x/administer/members-management.md) ##### 自动同步成员 - [同步成员](https://enterprise-docs.dify.ai/zh/3.2.x/administer/members/synchronization/sync-team-members.md): 通过 SCIM 标准自动同步组织成员。版本号 ≥ v2.7.0 - [Azure](https://enterprise-docs.dify.ai/zh/3.2.x/administer/members/synchronization/azure.md): 通过 SCIM 标准自动同步组织成员。版本号 ≥ v2.7.0 - [Okta](https://enterprise-docs.dify.ai/zh/3.2.x/administer/members/synchronization/okta.md): 通过 SCIM 标准自动同步组织成员。版本号 ≥ v2.7.0 #### 身份认证 - [功能简介](https://enterprise-docs.dify.ai/zh/3.2.x/administer/authentication/introduction.md) - [内部用户认证](https://enterprise-docs.dify.ai/zh/3.2.x/administer/authentication/enterprise-user-auth.md) - [Web App 外部用户认证](https://enterprise-docs.dify.ai/zh/3.2.x/administer/authentication/webapp-external-user-auth.md) ##### 配置 SSO 认证 - [SSO 认证介绍](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/introduction.md) ###### Okta - [使用 Okta 配置 OIDC](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/okta/oidc.md) - [使用 Okta 配置 SAML](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/okta/saml.md) - [使用 Okta 配置 OAuth2](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/okta/oauth2.md) ###### Azure - [使用 Azure 配置 SAML](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/azure/saml.md) ###### GitHub - [使用 GitHub 配置 OAuth2](https://enterprise-docs.dify.ai/zh/3.2.x/administer/sso/github/oauth2.md) #### 系统设置 - [系统管理员](https://enterprise-docs.dify.ai/zh/3.2.x/administer/systems/users.md) - [两步验证](https://enterprise-docs.dify.ai/zh/3.2.x/administer/systems/2sv.md) ### 使用 #### 编排 - [应用工具箱](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/additional-features.md): 让 Dify 应用更实用的可选功能 ##### 工作流与对话流 - [Workflow 与 Chatflow](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/workflow-chatflow.md): 构建将 AI 模型、工具和逻辑组合为可靠、可重复流程的 Agentic 工作流 - [编排逻辑](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/orchestrate-node.md): 构建 Workflow 或 Chatflow 时,如何排列、嵌套与复用节点 - [快捷键](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/shortcut-key.md): 使用键盘快捷键更快地构建 Dify 工作流 - [版本控制](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/version-control.md) ###### 节点 - [开始](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/user-input.md): 收集用户输入以启动 Workflow 和 Chatflow 应用程序 - [大语言模型](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/llm.md): 调用语言模型进行文本生成和分析 - [知识检索](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/knowledge-retrieval.md) - [直接回复](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/answer.md) - [结束](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/output.md): 定义工作流的最终输出内容 - [Agent](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/agent.md) - [问题分类器](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/question-classifier.md) - [If-Else](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/ifelse.md): 为工作流添加条件逻辑和分支 - [迭代](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/iteration.md) - [循环](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/loop.md) - [代码](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/code.md) - [模板转换](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/template.md): 使用 Jinja2 模板转换和格式化数据 - [变量聚合器](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/variable-aggregator.md): 将互斥工作流分支汇聚为单一输出 - [文档提取器](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/doc-extractor.md) - [变量赋值器](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/variable-assigner.md): 在 Chatflow 应用中管理持久化会话变量 - [参数提取器](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/parameter-extractor.md) - [HTTP 请求](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/http-request.md) - [列表操作符](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/list-operator.md): 筛选、排序和选择数组中的元素 - [工具节点](https://enterprise-docs.dify.ai/zh/3.2.x/use/nodes/tools.md): 连接外部服务和 API ###### 调试 - [处理错误](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/predefined-error-handling-logic.md) - [单节点](https://enterprise-docs.dify.ai/zh/3.2.x/use/debug/step-run.md) - [变量检查器](https://enterprise-docs.dify.ai/zh/3.2.x/use/debug/variable-inspect.md) - [运行历史](https://enterprise-docs.dify.ai/zh/3.2.x/use/debug/history-and-logs.md) - [错误类型](https://enterprise-docs.dify.ai/zh/3.2.x/use/debug/error-type.md) ##### 基础应用 - [Agent](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/agent.md): 模型能够自主推理、决策并使用工具的对话式应用 - [聊天助手](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/chatbot.md): 通过模型和提示词构建对话式应用的最简单方式 - [文本生成应用](https://enterprise-docs.dify.ai/zh/3.2.x/use/build/text-generator.md): 通过提示词和用户输入生成文本的简单单轮应用 #### 发布 - [分享你的 AI 应用](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/README.md) ##### Web App - [Workflow Web 应用](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/webapp/workflow-webapp.md): 通过批处理、结果管理和流畅的使用体验,将工作流转变为强大的 Web 应用 - [聊天 Web App](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/webapp/chatflow-webapp.md): 将 Chatflow 转变为具备持久化历史记录和交互功能的完整对话界面 - [Web App 设置](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/webapp/web-app-settings.md) - [访问控制](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/webapp/web-app-access.md): 通过四个访问级别,控制谁可以访问你发布的 Web 应用,从特定成员到完全公开。 - [嵌入 Web 应用](https://enterprise-docs.dify.ai/zh/3.2.x/use/publish/webapp/embedding-in-websites.md): 通过 iframe、聊天气泡组件或自定义集成,将已发布的 Web 应用部署到任何网站 #### 监控 - [仪表盘](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/analysis.md): 通过 Dify 内置的分析仪表盘监控性能、成本和用户参与度 - [日志](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/logs.md): 监控实时对话、调试问题并收集用户反馈 - [标注系统](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/annotation-reply.md) ##### 集成 - [集成 LangSmith](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/integrations/integrate-langsmith.md) - [集成 Langfuse](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/integrations/integrate-langfuse.md) - [集成 Opik](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/integrations/integrate-opik.md) - [集成 W&B Weave](https://enterprise-docs.dify.ai/zh/3.2.x/use/monitor/integrations/integrate-weave.md): 通过 W&B Weave 实现 Dify 应用的 LLM 可观测性,将追踪数据发送至 W&B Weave #### 知识库 - [知识库](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/readme.md) - [测试检索](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/test-retrieval.md) - [在应用内集成知识库](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/integrate-knowledge-within-application.md) ##### 创建 ###### 快速创建 - [快速创建知识库](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/introduction.md) - [指定分段设置](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/chunking-and-cleaning-text.md) - [指定索引方式与检索设置](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/setting-indexing-methods.md) ###### 导入数据 - [上传本地文件](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/import-text-data/readme.md) - [从 Notion 导入数据](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/import-text-data/sync-from-notion.md) - [从网页导入数据](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/create-knowledge/import-text-data/sync-from-website.md) ###### 连接外部知识库 - [连接外部知识库](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/connect-external-knowledge-base.md): 通过 API 连接将外部知识源集成到 Dify 应用中,以使用自定义 RAG 系统或第三方知识服务 - [外部知识库 API](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/external-knowledge-api.md): 外部知识服务必须实现的 API 规范,用于与 Dify 集成 ##### 管理 - [维护知识库内容](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/manage-knowledge/maintain-knowledge-documents.md) - [管理文档元数据](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/metadata.md) - [调整知识库设置](https://enterprise-docs.dify.ai/zh/3.2.x/use/knowledge/manage-knowledge/introduction.md) #### 工作空间 - [工作空间](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/readme.md): 工作空间是 Dify 中的基础组织单位,你的团队所构建、配置和管理的一切都存在于工作空间中 - [模型供应商](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/model-providers.md): 为工作空间添加模型供应商,让应用能够使用 LLM、Embedding 模型及其他 AI 服务 - [插件](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/plugins.md): 通过模块化组件扩展 Dify,包括自定义模型、工具和集成 - [Dify 工具](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/tools.md): 管理使 LLM 能够与外部服务和 API 交互的工具 - [管理应用](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/app-management.md) - [管理成员](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/team-members-management.md): 管理工作空间成员、角色和权限以构建高效的 AI 团队 - [个人设置](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/personal-account-management.md): 管理你的个人资料、登录方式与界面偏好 ##### API 扩展 - [API 扩展](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/api-extension/api-extension.md) - [外部数据工具](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/api-extension/external-data-tool-api-extension.md) - [敏感内容审查](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/api-extension/moderation-api-extension.md) - [使用 Cloudflare Workers 部署 API 扩展](https://enterprise-docs.dify.ai/zh/3.2.x/use/workspace/api-extension/cloudflare-worker.md) ### 开发者资源 #### Workspace API ##### 指南 - [Dify API 快速开始](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/get-started.md): 获取 API 密钥、发起第一个请求,并找到你的应用类型对应的接口 - [处理流式响应](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/streaming.md): 选择响应模式、解析 SSE 流、按事件类型分发处理,并在连接断开后恢复 - [终端用户身份](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/end-user-identity.md): user 字段标识什么、限定哪些数据,以及为何要在各次调用间保持一致 - [处理错误与速率限制](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/errors.md): 错误响应的统一结构、各状态码类别的含义,以及哪些失败值得重试 ###### API 概览 - [Chatflow 应用 API](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/chatflow.md): Chatflow 应用 API,涵盖对话消息、工作流级别流式事件、会话管理 - [Workflow 应用 API](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/workflow.md): Workflow 应用 API,涵盖工作流执行、运行控制与流式传输、运行历史查询 - [知识库 API](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/knowledge.md): 用于管理知识库、文档、分段、元数据和标签的 API - [对话型应用 API](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/chat.md): 面向聊天助手和 Agent 应用的 API,涵盖对话消息、会话管理、文件上传、语音转换及标注管理 - [文本生成应用 API](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/guides/completion.md): 面向文本生成应用的 API,涵盖文本生成消息、文件上传、语音转换及反馈收集 ##### 应用 API ###### 对话消息 - [发送对话消息](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chat-messages/send-chat-message.md): **适用于**:Chatflow、聊天助手、Agent。 - [停止对话消息生成](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chat-messages/stop-chat-message-generation.md): **适用于**:Chatflow、聊天助手、Agent。 - [获取下一轮建议问题列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chat-messages/get-next-suggested-questions.md): **适用于**:Chatflow、聊天助手、Agent。 ###### 文本生成消息 - [发送消息](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/completion-messages/send-completion-message.md): **适用于**:文本生成应用。 - [停止消息生成](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/completion-messages/stop-completion-message-generation.md): **适用于**:文本生成应用。 ###### 工作流运行 - [执行工作流](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/workflow-runs/run-workflow.md): **适用于**:Workflow。 - [停止工作流任务](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/workflow-runs/stop-workflow-task.md): **适用于**:Workflow。 - [获取工作流执行情况](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/workflow-runs/get-workflow-run-detail.md): **适用于**:Chatflow、Workflow。 - [获取工作流日志](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/workflow-runs/list-workflow-logs.md): **适用于**:Chatflow、Workflow。 ###### 会话管理 - [获取会话列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/conversations/list-conversations.md): **适用于**:Chatflow、聊天助手、Agent。 - [获取会话历史消息](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/conversations/list-conversation-messages.md): **适用于**:Chatflow、聊天助手、Agent。 - [获取会话变量](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/conversations/list-conversation-variables.md): **适用于**:Chatflow、聊天助手、Agent。 - [重命名会话](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/conversations/rename-conversation.md): **适用于**:Chatflow、聊天助手、Agent。 - [删除会话](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/conversations/delete-conversation.md): **适用于**:Chatflow、聊天助手、Agent。 ###### 文件操作 - [上传文件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/files/upload-file.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 ###### 语音与文字转换 - [语音转文字](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/audio/convert-audio-to-text.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 - [文字转语音](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/audio/convert-text-to-audio.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 ###### 应用配置 - [获取应用基本信息](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/applications/get-app-info.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 - [获取应用参数](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/applications/get-app-parameters.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 - [获取应用元数据](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/applications/get-app-meta.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 - [获取应用 WebApp 设置](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/applications/get-app-webapp-settings.md): **适用于**:Chatflow、Workflow、聊天助手、Agent、文本生成应用。 ###### 消息反馈 - [提交消息反馈](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/feedback/submit-message-feedback.md): **适用于**:Chatflow、聊天助手、Agent、文本生成应用。 - [获取应用的消息反馈](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/feedback/list-app-feedbacks.md): **适用于**:Chatflow、聊天助手、Agent、文本生成应用。 ###### 标注管理 - [创建标注](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/create-annotation.md): **适用于**:Chatflow、聊天助手、Agent。 - [获取标注列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/list-annotations.md): **适用于**:Chatflow、聊天助手、Agent。 - [更新标注](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/update-annotation.md): **适用于**:Chatflow、聊天助手、Agent。 - [删除标注](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/delete-annotation.md): **适用于**:Chatflow、聊天助手、Agent。 - [配置标注回复](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/configure-annotation-reply.md): **适用于**:Chatflow、聊天助手、Agent。 - [查询标注回复配置任务状态](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/annotations/get-annotation-reply-job-status.md): **适用于**:Chatflow、聊天助手、Agent。 ##### 知识库 API ###### 知识库 - [创建空知识库](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/create-an-empty-knowledge-base.md): 创建一个空知识库。之后用 [从文本创建文档](/zh/3.2.x/develop/api/documents/create-document-by-text) 或 [从文件创建文档](/zh/3.2.x/develop/api/documents/create-document-by-file) 向其中添加文档。 - [获取知识库列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/list-knowledge-bases.md): 返回知识库的分页列表,可按关键词或标签筛选。 - [获取知识库详情](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/get-knowledge-base.md): 返回知识库的详细信息,包括嵌入模型、检索配置和文档统计信息。 - [更新知识库](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/update-knowledge-base.md): 更新知识库。仅更改请求体中包含的字段。 - [删除知识库](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/delete-knowledge-base.md): 永久删除知识库及其所有文档。 - [从知识库检索分段 / 测试检索](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/knowledge-bases/retrieve-chunks-from-a-knowledge-base-test-retrieval.md): 搜索知识库,返回与查询最相关的分段,可用于生产环境检索和测试检索。 ###### 文档 - [从文本创建文档](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/create-document-by-text.md): 在知识库中通过纯文本创建文档。索引异步进行;使用返回的 `batch` ID 通过 [获取文档嵌入状态(进度)](/zh/3.2.x/develop/api/documents/get-document-indexing-status) 跟踪。 - [从文件创建文档](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/create-document-by-file.md): 在知识库中通过上传文件创建文档。支持 PDF、TXT、DOCX 等常见格式。索引异步进行;使用返回的 `batch` ID 通过 [获取文档嵌入状态(进度)](/zh/3.2.x/develop/api/documents/get-document-indexing-status) 跟踪。 - [获取知识库的文档列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/list-documents.md): 返回知识库中文档的分页列表。 - [获取文档详情](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/get-document.md): 返回单个文档的详细信息。 - [删除文档](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/delete-document.md): 从知识库中永久删除文档及其所有分段。 - [获取文档嵌入状态(进度)](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/get-document-indexing-status.md): 返回批次中每个文档的索引进度:当前阶段和分段完成计数。轮询直到每个 `indexing_status` 变为 `completed` 或 `error`。状态按 `waiting` → `parsing` → `cleaning` → `splitting` → `indexing` → `completed` 推进。 - [用文本更新文档](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/update-document-by-text.md): 更新文档的文本内容、名称或处理配置。文本变更时会重新索引文档。 - [用文件更新文档](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/update-document-by-file.md): 通过上传新文件更新文档,然后重新索引。 - [批量更新文档状态](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/documents/update-document-status-in-batch.md): 在一次请求中批量启用、禁用、归档或取消归档多个文档。 - [获取上传文件](https://enterprise-docs.dify.ai/api-reference/documents/获取上传文件.md): 返回通过文件上传创建的文档的源文件,包含带签名的预览和下载链接。仅 `data_source_type` 为 `upload_file` 的文档有源文件。 ###### 分段 - [向文档添加分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/create-chunks.md): 在文档中创建一个或多个分段。 - [从文档获取分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/list-chunks.md): 返回文档内分段的分页列表,可按关键词或索引状态筛选。 - [获取文档中的分段详情](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/get-chunk.md): 获取单个分段的完整详情。 - [更新文档中的分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/update-chunk.md): 更新分段的字段。更新会为该分段重新触发索引。 - [删除文档中的分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/delete-chunk.md): 从文档中永久删除一个分段。 - [创建子分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/create-child-chunk.md): 在父分段下创建子分段。适用于使用父子(`hierarchical_model`)分块模式的文档。 - [获取子分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/list-child-chunks.md): 返回特定父分段下子分段的分页列表。 - [更新子分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/update-child-chunk.md): 更新现有子分段的内容。 - [删除子分段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/chunks/delete-child-chunk.md): 从父分段中永久删除一个子分段。 ###### 元数据 - [创建元数据字段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/create-metadata-field.md): 为知识库创建自定义元数据字段,用于给文档标注结构化信息。 - [获取元数据字段列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/list-metadata-fields.md): 返回知识库的所有元数据字段(包括自定义和内置字段),以及使用每个字段的文档数量。 - [更新元数据字段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/update-metadata-field.md): 重命名自定义元数据字段。 - [删除元数据字段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/delete-metadata-field.md): 永久删除自定义元数据字段。使用过该字段的文档将丢失其对应的值。 - [更新内置元数据字段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/update-built-in-metadata-field.md): 启用或禁用知识库的内置元数据字段。 - [批量更新文档元数据](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/update-document-metadata-in-batch.md): 在一次请求中批量更新多个文档的元数据值。 - [获取内置元数据字段](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/metadata/get-built-in-metadata-fields.md): 返回系统提供的内置元数据字段。 ###### 标签 - [创建知识库标签](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/create-knowledge-tag.md): 创建用于组织知识库的标签。 - [获取知识库标签列表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/list-knowledge-tags.md): 返回工作空间中所有的知识库标签。 - [修改知识库标签](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/update-knowledge-tag.md): 重命名知识库标签。 - [删除知识库标签](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/delete-knowledge-tag.md): 永久删除知识库标签。不会删除已被标记的知识库。 - [绑定标签到知识库](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/create-tag-binding.md): 将一个或多个标签绑定到知识库。一个知识库可以有多个标签。 - [解除标签与知识库的绑定](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/delete-tag-binding.md): 从知识库中移除一个或多个标签。 - [获取知识库绑定的标签](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/tags/get-knowledge-base-tags.md): 返回绑定到知识库的标签。 ###### 模型 - [获取可用模型](https://enterprise-docs.dify.ai/zh/3.2.x/develop/api/models/get-available-models.md): 返回指定类型的可用模型。用它查找可配置到知识库的 `text-embedding` 和 `rerank` 模型。 #### 插件开发 ##### 快速开始 - [Dify 插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/getting-started/getting-started-dify-plugin.md): 模块化组件,通过外部服务、自定义逻辑和专业工具扩展 Dify AI 应用 - [选择插件类型](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/getting-started/choose-plugin-type.md): 一份简明的决策指南,帮助你在工具、模型、Agent 策略和扩展插件之间做出选择 - [Dify 插件 CLI](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/getting-started/cli.md): 安装 Dify 插件 CLI、搭建新插件项目,并在本地开发时将其连接到 Dify 实例运行 ##### 特性与规范 ###### 插件类型 - [通用规范](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/general-specifications.md): 各类插件共享的通用数据结构,包括 I18nObject、ProviderConfig、ModelConfig、NodeResponse 和 ToolSelector - [模型规范](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/model-designing-rules.md): Dify 模型插件相关实体的参考,包括 Provider、AIModelEntity、模型类型、配置方法、参数规则和凭据模式 - [模型 API 接口](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/model-schema.md): 实现 Dify 模型插件所需的接口和数据结构,涵盖 LLM、TextEmbedding、Rerank、Speech2Text、Text2Speech 和 Moderation 模型 - [持久化存储](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/persistent-storage-kv.md): 使用内置的键值存储在插件的多次交互间保存数据 - [工具返回](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/tool.md): 工具插件如何返回消息(文本、链接、图片、文件、JSON)、创建标准变量和流式变量,以及定义输出模式以供工作流引用 - [Manifest](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/plugin-info-by-manifest.md): 插件 manifest 的 YAML schema,用于声明名称、作者、运行时、资源、权限,以及插件附带的工具、模型和端点 - [多语言 README](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/multilingual-readme.md): 添加各语言的 README 文件,让 Dify 市场以用户的首选语言展示插件文档 - [插件调试](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/remote-debug-a-plugin.md): 在本地运行开发中的插件,并将其挂载到在线 Dify 工作空间进行端到端测试,无需打包 - [输出插件日志](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/plugin-types/plugin-logging.md): 通过 SDK 的 plugin_logger_handler 输出插件日志,可在远程调试时查看,也会写入守护进程容器日志 ###### 高级开发 ###### 反向调用 - [Bundle 插件包](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/bundle.md): 将多个插件打包进一个 Bundle,支持 Marketplace、GitHub 和 Package 三种依赖类型 - [Dify 服务的反向调用](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/reverse-invocation.md): 在插件中调用 Dify 平台的 App、Model、Tool 和 Node 服务 - [应用](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/reverse-invocation-app.md): 在插件中调用 Dify 应用的 Chat、Workflow 和 Completion 接口 - [反向调用模型](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/reverse-invocation-model.md): 在插件中调用 LLM、嵌入、重排序、TTS、语音转文字和内容审核模型 - [工具](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/reverse-invocation-tool.md): 从插件中调用已安装工具、Workflow as Tool 和自定义工具 - [集成自定义模型](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/customizable-model.md): 以 Xinference 为例,将自定义模型集成到 Dify - [节点](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/features-and-specs/advanced-development/reverse-invocation-node.md): 从插件中调用参数提取器和问题分类器节点 ##### 开发指南与示例 - [速查表](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/cheatsheet.md): Dify 插件开发的快速参考,涵盖环境配置、安装、开发流程和插件类型 ###### 按插件类型 - [工具插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/tool-plugin.md): 从初始化到打包,以 Google Search 为示例完整开发一个 Dify 工具插件 - [模型供应商插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/creating-new-model-provider.md): 构建模型供应商插件,从项目搭建、供应商配置到模型实现、调试与发布。 - [Agent 策略插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/agent-strategy-plugin.md): 从零开始构建一个 Function Calling Agent 策略,通过实战示例展示如何为 LLM 提供工具并让其自主获取当前时间 - [Endpoint 插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/endpoint.md): 以 Neko Cat 项目为例,定义、配置并实现 Dify 插件中的 HTTP Endpoint ###### 完整示例 - [Flomo 工具(10分钟)](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/develop-flomo-plugin.md): 在大约十分钟内端到端构建一个连接 Flomo 笔记服务的功能性 Dify 工具插件 - [Slack Bot](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/develop-a-slack-bot-plugin.md): 构建一个将 Dify 应用连接到 Slack 的 Slack Bot 插件,涵盖从项目初始化到调试和打包的完整流程 - [Markdown 导出器](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/dev-guides-and-walkthroughs/develop-md-exporter.md): 学习如何创建一个将对话导出为不同文档格式的插件 ##### 发布 - [发布插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/marketplace-listing/release-overview.md): 分发 Dify 插件的三种方式(市场、GitHub 仓库或本地文件)以及如何选择合适的方式 - [发布插件到市场](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/marketplace-listing/submit-plugin-to-marketplace.md): 准备并验证 .difypkg,提交市场审核,处理 Pull Request,并在创作者中心查看已发布插件的表现和反馈 - [常见问题](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/faq/faq.md): 构建、打包、调试和安装 Dify 插件时的常见问题与解决方法 ###### 标准 - [插件开发指南](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/standards/contributor-covenant-code-of-conduct.md): 为了确保 Dify Marketplace 中所有插件的质量,并为 Dify Marketplace 用户提供一致的高质量体验,您在提交插件进行审核时必须遵守这些插件开发指南中列出的所有要求。提交插件即表示**您确认已阅读、理解并同意遵守以下所有条款**。遵循这些指南将帮助您的插件更快通过审核。 - [隐私政策指南](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/standards/privacy-protection-guidelines.md): 如何声明数据收集行为,并为提交到 Dify 市场的每个插件编写所需的隐私政策 ###### GitHub 仓库 - [发布到个人 GitHub 仓库](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/marketplace-listing/release-to-individual-github-repo.md): 从自己的 GitHub 仓库分发 Dify 插件,用户通过仓库 URL 直接安装,无需市场审核 ###### 本地文件 - [打包为本地文件并分享](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/marketplace-listing/release-by-file.md): 将 Dify 插件打包为 `.difypkg` 文件,可直接安装或分发给他人,无需发布到市场或 GitHub - [为第三方签名验证签署插件](https://enterprise-docs.dify.ai/zh/3.2.x/develop/plugins/publishing/standards/third-party-signature-verification.md): 在 Dify Community Edition 中启用已签名的 `.difypkg` 安装,无需完全禁用签名验证(生成密钥、签署软件包、分发公钥) ## OpenAPI Specs - [openapi_service](/zh/3.2.x/develop/api/openapi_service.json) - [openapi_service](/zh/2.5.x/develop/api/openapi_service.json)