您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. ![cover-v5-optimized](./images/GitHub_README_if.png)
  2. <div align="center">
  3. <a href="https://cloud.dify.ai">Dify 云服务</a> ·
  4. <a href="https://docs.dify.ai/getting-started/install-self-hosted">自托管</a> ·
  5. <a href="https://docs.dify.ai">文档</a> ·
  6. <a href="https://dify.ai/pricing">Dify 产品形态总览</a>
  7. </div>
  8. <p align="center">
  9. <a href="https://dify.ai" target="_blank">
  10. <img alt="Static Badge" src="https://img.shields.io/badge/Product-F04438"></a>
  11. <a href="https://dify.ai/pricing" target="_blank">
  12. <img alt="Static Badge" src="https://img.shields.io/badge/free-pricing?logo=free&color=%20%23155EEF&label=pricing&labelColor=%20%23528bff"></a>
  13. <a href="https://discord.gg/FngNHpbcY7" target="_blank">
  14. <img src="https://img.shields.io/discord/1082486657678311454?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb"
  15. alt="chat on Discord"></a>
  16. <a href="https://reddit.com/r/difyai" target="_blank">
  17. <img src="https://img.shields.io/reddit/subreddit-subscribers/difyai?style=plastic&logo=reddit&label=r%2Fdifyai&labelColor=white"
  18. alt="join Reddit"></a>
  19. <a href="https://twitter.com/intent/follow?screen_name=dify_ai" target="_blank">
  20. <img src="https://img.shields.io/twitter/follow/dify_ai?logo=X&color=%20%23f5f5f5"
  21. alt="follow on X(Twitter)"></a>
  22. <a href="https://www.linkedin.com/company/langgenius/" target="_blank">
  23. <img src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff"
  24. alt="follow on LinkedIn"></a>
  25. <a href="https://hub.docker.com/u/langgenius" target="_blank">
  26. <img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/langgenius/dify-web?labelColor=%20%23FDB062&color=%20%23f79009"></a>
  27. <a href="https://github.com/langgenius/dify/graphs/commit-activity" target="_blank">
  28. <img alt="Commits last month" src="https://img.shields.io/github/commit-activity/m/langgenius/dify?labelColor=%20%2332b583&color=%20%2312b76a"></a>
  29. <a href="https://github.com/langgenius/dify/" target="_blank">
  30. <img alt="Issues closed" src="https://img.shields.io/github/issues-search?query=repo%3Alanggenius%2Fdify%20is%3Aclosed&label=issues%20closed&labelColor=%20%237d89b0&color=%20%235d6b98"></a>
  31. <a href="https://github.com/langgenius/dify/discussions/" target="_blank">
  32. <img alt="Discussion posts" src="https://img.shields.io/github/discussions/langgenius/dify?labelColor=%20%239b8afb&color=%20%237a5af8"></a>
  33. </p>
  34. <div align="center">
  35. <a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-d9d9d9"></a>
  36. <a href="./README_CN.md"><img alt="简体中文版自述文件" src="https://img.shields.io/badge/简体中文-d9d9d9"></a>
  37. <a href="./README_JA.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
  38. <a href="./README_ES.md"><img alt="README en Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
  39. <a href="./README_FR.md"><img alt="README en Français" src="https://img.shields.io/badge/Français-d9d9d9"></a>
  40. <a href="./README_KL.md"><img alt="README tlhIngan Hol" src="https://img.shields.io/badge/Klingon-d9d9d9"></a>
  41. <a href="./README_KR.md"><img alt="README in Korean" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
  42. <a href="./README_AR.md"><img alt="README بالعربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
  43. <a href="./README_TR.md"><img alt="Türkçe README" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
  44. <a href="./README_VI.md"><img alt="README Tiếng Việt" src="https://img.shields.io/badge/Ti%E1%BA%BFng%20Vi%E1%BB%87t-d9d9d9"></a>
  45. <a href="./README_BN.md"><img alt="README in বাংলা" src="https://img.shields.io/badge/বাংলা-d9d9d9"></a>
  46. </div>
  47. #
  48. <div align="center">
  49. <a href="https://trendshift.io/repositories/2152" target="_blank"><img src="https://trendshift.io/api/badge/repositories/2152" alt="langgenius%2Fdify | 趋势转变" style="width: 250px; height: 55px;" width="250" height="55"/></a>
  50. </div>
  51. Dify 是一个开源的 LLM 应用开发平台。其直观的界面结合了 AI 工作流、RAG 管道、Agent、模型管理、可观测性功能等,让您可以快速从原型到生产。以下是其核心功能列表:
  52. </br> </br>
  53. **1. 工作流**:
  54. 在画布上构建和测试功能强大的 AI 工作流程,利用以下所有功能以及更多功能。
  55. **2. 全面的模型支持**:
  56. 与数百种专有/开源 LLMs 以及数十种推理提供商和自托管解决方案无缝集成,涵盖 GPT、Mistral、Llama3 以及任何与 OpenAI API 兼容的模型。完整的支持模型提供商列表可在[此处](https://docs.dify.ai/getting-started/readme/model-providers)找到。
  57. ![providers-v5](https://github.com/langgenius/dify/assets/13230914/5a17bdbe-097a-4100-8363-40255b70f6e3)
  58. **3. Prompt IDE**:
  59. 用于制作提示、比较模型性能以及向基于聊天的应用程序添加其他功能(如文本转语音)的直观界面。
  60. **4. RAG Pipeline**:
  61. 广泛的 RAG 功能,涵盖从文档摄入到检索的所有内容,支持从 PDF、PPT 和其他常见文档格式中提取文本的开箱即用的支持。
  62. **5. Agent 智能体**:
  63. 您可以基于 LLM 函数调用或 ReAct 定义 Agent,并为 Agent 添加预构建或自定义工具。Dify 为 AI Agent 提供了 50 多种内置工具,如谷歌搜索、DALL·E、Stable Diffusion 和 WolframAlpha 等。
  64. **6. LLMOps**:
  65. 随时间监视和分析应用程序日志和性能。您可以根据生产数据和标注持续改进提示、数据集和模型。
  66. **7. 后端即服务**:
  67. 所有 Dify 的功能都带有相应的 API,因此您可以轻松地将 Dify 集成到自己的业务逻辑中。
  68. ## 功能比较
  69. <table style="width: 100%;">
  70. <tr>
  71. <th align="center">功能</th>
  72. <th align="center">Dify.AI</th>
  73. <th align="center">LangChain</th>
  74. <th align="center">Flowise</th>
  75. <th align="center">OpenAI Assistant API</th>
  76. </tr>
  77. <tr>
  78. <td align="center">编程方法</td>
  79. <td align="center">API + 应用程序导向</td>
  80. <td align="center">Python 代码</td>
  81. <td align="center">应用程序导向</td>
  82. <td align="center">API 导向</td>
  83. </tr>
  84. <tr>
  85. <td align="center">支持的 LLMs</td>
  86. <td align="center">丰富多样</td>
  87. <td align="center">丰富多样</td>
  88. <td align="center">丰富多样</td>
  89. <td align="center">仅限 OpenAI</td>
  90. </tr>
  91. <tr>
  92. <td align="center">RAG 引擎</td>
  93. <td align="center">✅</td>
  94. <td align="center">✅</td>
  95. <td align="center">✅</td>
  96. <td align="center">✅</td>
  97. </tr>
  98. <tr>
  99. <td align="center">Agent</td>
  100. <td align="center">✅</td>
  101. <td align="center">✅</td>
  102. <td align="center">❌</td>
  103. <td align="center">✅</td>
  104. </tr>
  105. <tr>
  106. <td align="center">工作流</td>
  107. <td align="center">✅</td>
  108. <td align="center">❌</td>
  109. <td align="center">✅</td>
  110. <td align="center">❌</td>
  111. </tr>
  112. <tr>
  113. <td align="center">可观测性</td>
  114. <td align="center">✅</td>
  115. <td align="center">✅</td>
  116. <td align="center">❌</td>
  117. <td align="center">❌</td>
  118. </tr>
  119. <tr>
  120. <td align="center">企业功能(SSO/访问控制)</td>
  121. <td align="center">✅</td>
  122. <td align="center">❌</td>
  123. <td align="center">❌</td>
  124. <td align="center">❌</td>
  125. </tr>
  126. <tr>
  127. <td align="center">本地部署</td>
  128. <td align="center">✅</td>
  129. <td align="center">✅</td>
  130. <td align="center">✅</td>
  131. <td align="center">❌</td>
  132. </tr>
  133. </table>
  134. ## 使用 Dify
  135. - **云 </br>**
  136. 我们提供[ Dify 云服务](https://dify.ai),任何人都可以零设置尝试。它提供了自部署版本的所有功能,并在沙盒计划中包含 200 次免费的 GPT-4 调用。
  137. - **自托管 Dify 社区版</br>**
  138. 使用这个[入门指南](#快速启动)快速在您的环境中运行 Dify。
  139. 使用我们的[文档](https://docs.dify.ai)进行进一步的参考和更深入的说明。
  140. - **面向企业/组织的 Dify</br>**
  141. 我们提供额外的面向企业的功能。[给我们发送电子邮件](mailto:business@dify.ai?subject=[GitHub]Business%20License%20Inquiry)讨论企业需求。 </br>
  142. > 对于使用 AWS 的初创公司和中小型企业,请查看 [AWS Marketplace 上的 Dify 高级版](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6),并使用一键部署到您自己的 AWS VPC。它是一个价格实惠的 AMI 产品,提供了使用自定义徽标和品牌创建应用程序的选项。
  143. ## 保持领先
  144. 在 GitHub 上给 Dify Star,并立即收到新版本的通知。
  145. ![star-us](https://github.com/langgenius/dify/assets/13230914/b823edc1-6388-4e25-ad45-2f6b187adbb4)
  146. ## 安装社区版
  147. ### 系统要求
  148. 在安装 Dify 之前,请确保您的机器满足以下最低系统要求:
  149. - CPU >= 2 Core
  150. - RAM >= 4 GiB
  151. ### 快速启动
  152. 启动 Dify 服务器的最简单方法是运行我们的 [docker-compose.yml](docker/docker-compose.yaml) 文件。在运行安装命令之前,请确保您的机器上安装了 [Docker](https://docs.docker.com/get-docker/) 和 [Docker Compose](https://docs.docker.com/compose/install/):
  153. ```bash
  154. cd docker
  155. cp .env.example .env
  156. docker compose up -d
  157. ```
  158. 运行后,可以在浏览器上访问 [http://localhost/install](http://localhost/install) 进入 Dify 控制台并开始初始化安装操作。
  159. ### 自定义配置
  160. 如果您需要自定义配置,请参考 [.env.example](docker/.env.example) 文件中的注释,并更新 `.env` 文件中对应的值。此外,您可能需要根据您的具体部署环境和需求对 `docker-compose.yaml` 文件本身进行调整,例如更改镜像版本、端口映射或卷挂载。完成任何更改后,请重新运行 `docker-compose up -d`。您可以在[此处](https://docs.dify.ai/getting-started/install-self-hosted/environments)找到可用环境变量的完整列表。
  161. #### 使用 Helm Chart 或 Kubernetes 资源清单(YAML)部署
  162. 使用 [Helm Chart](https://helm.sh/) 版本或者 Kubernetes 资源清单(YAML),可以在 Kubernetes 上部署 Dify。
  163. - [Helm Chart by @LeoQuote](https://github.com/douban/charts/tree/master/charts/dify)
  164. - [Helm Chart by @BorisPolonsky](https://github.com/BorisPolonsky/dify-helm)
  165. - [Helm Chart by @magicsong](https://github.com/magicsong/ai-charts)
  166. - [YAML 文件 by @Winson-030](https://github.com/Winson-030/dify-kubernetes)
  167. - [YAML file by @wyy-holding](https://github.com/wyy-holding/dify-k8s)
  168. - [🚀 NEW! YAML 文件 (支持 Dify v1.6.0) by @Zhoneym](https://github.com/Zhoneym/DifyAI-Kubernetes)
  169. #### 使用 Terraform 部署
  170. 使用 [terraform](https://www.terraform.io/) 一键将 Dify 部署到云平台
  171. ##### Azure Global
  172. - [Azure Terraform by @nikawang](https://github.com/nikawang/dify-azure-terraform)
  173. ##### Google Cloud
  174. - [Google Cloud Terraform by @sotazum](https://github.com/DeNA/dify-google-cloud-terraform)
  175. #### 使用 AWS CDK 部署
  176. 使用 [CDK](https://aws.amazon.com/cdk/) 将 Dify 部署到 AWS
  177. ##### AWS
  178. - [AWS CDK by @KevinZhao](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)
  179. #### 使用 阿里云计算巢 部署
  180. 使用 [阿里云计算巢](https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=Dify%E7%A4%BE%E5%8C%BA%E7%89%88) 将 Dify 一键部署到 阿里云
  181. #### 使用 阿里云数据管理DMS 部署
  182. 使用 [阿里云数据管理DMS](https://help.aliyun.com/zh/dms/dify-in-invitational-preview) 将 Dify 一键部署到 阿里云
  183. ## Star History
  184. [![Star History Chart](https://api.star-history.com/svg?repos=langgenius/dify&type=Date)](https://star-history.com/#langgenius/dify&Date)
  185. ## Contributing
  186. 对于那些想要贡献代码的人,请参阅我们的[贡献指南](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)。
  187. 同时,请考虑通过社交媒体、活动和会议来支持 Dify 的分享。
  188. > 我们正在寻找贡献者来帮助将 Dify 翻译成除了中文和英文之外的其他语言。如果您有兴趣帮助,请参阅我们的[i18n README](https://github.com/langgenius/dify/blob/main/web/i18n/README.md)获取更多信息,并在我们的[Discord 社区服务器](https://discord.gg/8Tpq4AcN9c)的`global-users`频道中留言。
  189. **Contributors**
  190. <a href="https://github.com/langgenius/dify/graphs/contributors">
  191. <img src="https://contrib.rocks/image?repo=langgenius/dify" />
  192. </a>
  193. ## 社区与支持
  194. 我们欢迎您为 Dify 做出贡献,以帮助改善 Dify。包括:提交代码、问题、新想法,或分享您基于 Dify 创建的有趣且有用的 AI 应用程序。同时,我们也欢迎您在不同的活动、会议和社交媒体上分享 Dify。
  195. - [GitHub Discussion](https://github.com/langgenius/dify/discussions). 👉:分享您的应用程序并与社区交流。
  196. - [GitHub Issues](https://github.com/langgenius/dify/issues)。👉:使用 Dify.AI 时遇到的错误和问题,请参阅[贡献指南](CONTRIBUTING.md)。
  197. - [电子邮件支持](mailto:hello@dify.ai?subject=[GitHub]Questions%20About%20Dify)。👉:关于使用 Dify.AI 的问题。
  198. - [Discord](https://discord.gg/FngNHpbcY7)。👉:分享您的应用程序并与社区交流。
  199. - [X(Twitter)](https://twitter.com/dify_ai)。👉:分享您的应用程序并与社区交流。
  200. - [商业许可](mailto:business@dify.ai?subject=[GitHub]Business%20License%20Inquiry)。👉:有关商业用途许可 Dify.AI 的商业咨询。
  201. ## 安全问题
  202. 为了保护您的隐私,请避免在 GitHub 上发布安全问题。发送问题至 security@dify.ai,我们将为您做更细致的解答。
  203. ## License
  204. 本仓库遵循 [Dify Open Source License](LICENSE) 开源协议,该许可证本质上是 Apache 2.0,但有一些额外的限制。