|
@@ -0,0 +1,258 @@
|
|
|
+
|
|
|
+
|
|
|
+<p align="center">
|
|
|
+ 📌 <a href="https://dify.ai/blog/introducing-dify-workflow-file-upload-a-demo-on-ai-podcast">介紹 Dify 工作流程檔案上傳功能:重現 Google NotebookLM Podcast</a>
|
|
|
+</p>
|
|
|
+
|
|
|
+<p align="center">
|
|
|
+ <a href="https://cloud.dify.ai">Dify 雲端服務</a> ·
|
|
|
+ <a href="https://docs.dify.ai/getting-started/install-self-hosted">自行託管</a> ·
|
|
|
+ <a href="https://docs.dify.ai">說明文件</a> ·
|
|
|
+ <a href="https://udify.app/chat/22L1zSxg6yW1cWQg">企業諮詢</a>
|
|
|
+</p>
|
|
|
+
|
|
|
+<p align="center">
|
|
|
+ <a href="https://dify.ai" target="_blank">
|
|
|
+ <img alt="Static Badge" src="https://img.shields.io/badge/Product-F04438"></a>
|
|
|
+ <a href="https://dify.ai/pricing" target="_blank">
|
|
|
+ <img alt="Static Badge" src="https://img.shields.io/badge/free-pricing?logo=free&color=%20%23155EEF&label=pricing&labelColor=%20%23528bff"></a>
|
|
|
+ <a href="https://discord.gg/FngNHpbcY7" target="_blank">
|
|
|
+ <img src="https://img.shields.io/discord/1082486657678311454?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb"
|
|
|
+ alt="chat on Discord"></a>
|
|
|
+ <a href="https://reddit.com/r/difyai" target="_blank">
|
|
|
+ <img src="https://img.shields.io/reddit/subreddit-subscribers/difyai?style=plastic&logo=reddit&label=r%2Fdifyai&labelColor=white"
|
|
|
+ alt="join Reddit"></a>
|
|
|
+ <a href="https://twitter.com/intent/follow?screen_name=dify_ai" target="_blank">
|
|
|
+ <img src="https://img.shields.io/twitter/follow/dify_ai?logo=X&color=%20%23f5f5f5"
|
|
|
+ alt="follow on X(Twitter)"></a>
|
|
|
+ <a href="https://www.linkedin.com/company/langgenius/" target="_blank">
|
|
|
+ <img src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff"
|
|
|
+ alt="follow on LinkedIn"></a>
|
|
|
+ <a href="https://hub.docker.com/u/langgenius" target="_blank">
|
|
|
+ <img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/langgenius/dify-web?labelColor=%20%23FDB062&color=%20%23f79009"></a>
|
|
|
+ <a href="https://github.com/langgenius/dify/graphs/commit-activity" target="_blank">
|
|
|
+ <img alt="Commits last month" src="https://img.shields.io/github/commit-activity/m/langgenius/dify?labelColor=%20%2332b583&color=%20%2312b76a"></a>
|
|
|
+ <a href="https://github.com/langgenius/dify/" target="_blank">
|
|
|
+ <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>
|
|
|
+ <a href="https://github.com/langgenius/dify/discussions/" target="_blank">
|
|
|
+ <img alt="Discussion posts" src="https://img.shields.io/github/discussions/langgenius/dify?labelColor=%20%239b8afb&color=%20%237a5af8"></a>
|
|
|
+</p>
|
|
|
+
|
|
|
+<p align="center">
|
|
|
+ <a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
|
|
+ <a href="./README_TW.md"><img alt="繁體中文文件" src="https://img.shields.io/badge/繁體中文-d9d9d9"></a>
|
|
|
+ <a href="./README_CN.md"><img alt="简体中文版自述文件" src="https://img.shields.io/badge/简体中文-d9d9d9"></a>
|
|
|
+ <a href="./README_JA.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
|
|
+ <a href="./README_ES.md"><img alt="README en Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
|
|
+ <a href="./README_FR.md"><img alt="README en Français" src="https://img.shields.io/badge/Français-d9d9d9"></a>
|
|
|
+ <a href="./README_KL.md"><img alt="README tlhIngan Hol" src="https://img.shields.io/badge/Klingon-d9d9d9"></a>
|
|
|
+ <a href="./README_KR.md"><img alt="README in Korean" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
|
|
+ <a href="./README_AR.md"><img alt="README بالعربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
|
|
+ <a href="./README_TR.md"><img alt="Türkçe README" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
|
|
+ <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>
|
|
|
+ <a href="./README_DE.md"><img alt="README in Deutsch" src="https://img.shields.io/badge/German-d9d9d9"></a>
|
|
|
+</p>
|
|
|
+
|
|
|
+Dify 是一個開源的 LLM 應用程式開發平台。其直觀的界面結合了智能代理工作流程、RAG 管道、代理功能、模型管理、可觀察性功能等,讓您能夠快速從原型進展到生產環境。
|
|
|
+
|
|
|
+## 快速開始
|
|
|
+
|
|
|
+> 安裝 Dify 之前,請確保您的機器符合以下最低系統要求:
|
|
|
+>
|
|
|
+> - CPU >= 2 核心
|
|
|
+> - 記憶體 >= 4 GiB
|
|
|
+
|
|
|
+</br>
|
|
|
+
|
|
|
+啟動 Dify 伺服器最簡單的方式是透過 [docker compose](docker/docker-compose.yaml)。在使用以下命令運行 Dify 之前,請確保您的機器已安裝 [Docker](https://docs.docker.com/get-docker/) 和 [Docker Compose](https://docs.docker.com/compose/install/):
|
|
|
+
|
|
|
+```bash
|
|
|
+cd dify
|
|
|
+cd docker
|
|
|
+cp .env.example .env
|
|
|
+docker compose up -d
|
|
|
+```
|
|
|
+
|
|
|
+運行後,您可以在瀏覽器中通過 [http://localhost/install](http://localhost/install) 訪問 Dify 儀表板並開始初始化過程。
|
|
|
+
|
|
|
+### 尋求幫助
|
|
|
+
|
|
|
+如果您在設置 Dify 時遇到問題,請參考我們的 [常見問題](https://docs.dify.ai/getting-started/install-self-hosted/faqs)。如果仍有疑問,請聯絡 [社區和我們](#community--contact)。
|
|
|
+
|
|
|
+> 如果您想為 Dify 做出貢獻或進行額外開發,請參考我們的 [從原始碼部署指南](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)
|
|
|
+
|
|
|
+## 核心功能
|
|
|
+
|
|
|
+**1. 工作流程**:
|
|
|
+在視覺化畫布上建立和測試強大的 AI 工作流程,利用以下所有功能及更多。
|
|
|
+
|
|
|
+https://github.com/langgenius/dify/assets/13230914/356df23e-1604-483d-80a6-9517ece318aa
|
|
|
+
|
|
|
+**2. 全面的模型支援**:
|
|
|
+無縫整合來自數十個推理提供商和自託管解決方案的數百個專有/開源 LLM,涵蓋 GPT、Mistral、Llama3 和任何與 OpenAI API 兼容的模型。您可以在[此處](https://docs.dify.ai/getting-started/readme/model-providers)找到支援的模型提供商完整列表。
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+**3. 提示詞 IDE**:
|
|
|
+直觀的界面,用於編寫提示詞、比較模型性能,以及為聊天型應用程式添加文字轉語音等額外功能。
|
|
|
+
|
|
|
+**4. RAG 管道**:
|
|
|
+廣泛的 RAG 功能,涵蓋從文件擷取到檢索的全部流程,內建支援從 PDF、PPT 和其他常見文件格式提取文本。
|
|
|
+
|
|
|
+**5. 代理功能**:
|
|
|
+您可以基於 LLM 函數調用或 ReAct 定義代理,並為代理添加預構建或自定義工具。Dify 為 AI 代理提供 50 多種內建工具,如 Google 搜尋、DALL·E、Stable Diffusion 和 WolframAlpha。
|
|
|
+
|
|
|
+**6. LLMOps**:
|
|
|
+監控並分析應用程式日誌和長期效能。您可以根據生產數據和標註持續改進提示詞、數據集和模型。
|
|
|
+
|
|
|
+**7. 後端即服務**:
|
|
|
+Dify 的所有功能都提供相應的 API,因此您可以輕鬆地將 Dify 整合到您自己的業務邏輯中。
|
|
|
+
|
|
|
+## 功能比較
|
|
|
+
|
|
|
+<table style="width: 100%;">
|
|
|
+ <tr>
|
|
|
+ <th align="center">功能</th>
|
|
|
+ <th align="center">Dify.AI</th>
|
|
|
+ <th align="center">LangChain</th>
|
|
|
+ <th align="center">Flowise</th>
|
|
|
+ <th align="center">OpenAI Assistants API</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">程式設計方法</td>
|
|
|
+ <td align="center">API + 應用導向</td>
|
|
|
+ <td align="center">Python 代碼</td>
|
|
|
+ <td align="center">應用導向</td>
|
|
|
+ <td align="center">API 導向</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">支援的 LLM 模型</td>
|
|
|
+ <td align="center">豐富多樣</td>
|
|
|
+ <td align="center">豐富多樣</td>
|
|
|
+ <td align="center">豐富多樣</td>
|
|
|
+ <td align="center">僅限 OpenAI</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">RAG 引擎</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">代理功能</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">工作流程</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">可觀察性</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">企業級功能 (SSO/存取控制)</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td align="center">本地部署</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">✅</td>
|
|
|
+ <td align="center">❌</td>
|
|
|
+ </tr>
|
|
|
+</table>
|
|
|
+
|
|
|
+## 使用 Dify
|
|
|
+
|
|
|
+- **雲端服務 </br>**
|
|
|
+ 我們提供 [Dify Cloud](https://dify.ai) 服務,任何人都可以零配置嘗試。它提供與自部署版本相同的所有功能,並在沙盒計劃中包含 200 次免費 GPT-4 調用。
|
|
|
+
|
|
|
+- **自託管 Dify 社區版</br>**
|
|
|
+ 使用這份[快速指南](#快速開始)在您的環境中快速運行 Dify。
|
|
|
+ 使用我們的[文檔](https://docs.dify.ai)獲取更多參考和深入指導。
|
|
|
+
|
|
|
+- **企業/組織版 Dify</br>**
|
|
|
+ 我們提供額外的企業中心功能。[通過這個聊天機器人記錄您的問題](https://udify.app/chat/22L1zSxg6yW1cWQg)或[發送電子郵件給我們](mailto:business@dify.ai?subject=[GitHub]Business%20License%20Inquiry)討論企業需求。</br>
|
|
|
+ > 對於使用 AWS 的初創企業和小型企業,請查看 [AWS Marketplace 上的 Dify Premium](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6),並一鍵部署到您自己的 AWS VPC。這是一個經濟實惠的 AMI 產品,可選擇使用自定義徽標和品牌創建應用。
|
|
|
+
|
|
|
+## 保持領先
|
|
|
+
|
|
|
+在 GitHub 上為 Dify 加星,即時獲取新版本通知。
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+## 進階設定
|
|
|
+
|
|
|
+如果您需要自定義配置,請參考我們的 [.env.example](docker/.env.example) 文件中的註釋,並在您的 `.env` 文件中更新相應的值。此外,根據您特定的部署環境和需求,您可能需要調整 `docker-compose.yaml` 文件本身,例如更改映像版本、端口映射或卷掛載。進行任何更改後,請重新運行 `docker-compose up -d`。您可以在[這裡](https://docs.dify.ai/getting-started/install-self-hosted/environments)找到可用環境變數的完整列表。
|
|
|
+
|
|
|
+如果您想配置高可用性設置,社區貢獻的 [Helm Charts](https://helm.sh/) 和 YAML 文件允許在 Kubernetes 上部署 Dify。
|
|
|
+
|
|
|
+- [由 @LeoQuote 提供的 Helm Chart](https://github.com/douban/charts/tree/master/charts/dify)
|
|
|
+- [由 @BorisPolonsky 提供的 Helm Chart](https://github.com/BorisPolonsky/dify-helm)
|
|
|
+- [由 @Winson-030 提供的 YAML 文件](https://github.com/Winson-030/dify-kubernetes)
|
|
|
+
|
|
|
+### 使用 Terraform 進行部署
|
|
|
+
|
|
|
+使用 [terraform](https://www.terraform.io/) 一鍵部署 Dify 到雲端平台
|
|
|
+
|
|
|
+### Azure 全球
|
|
|
+
|
|
|
+- [由 @nikawang 提供的 Azure Terraform](https://github.com/nikawang/dify-azure-terraform)
|
|
|
+
|
|
|
+### Google Cloud
|
|
|
+
|
|
|
+- [由 @sotazum 提供的 Google Cloud Terraform](https://github.com/DeNA/dify-google-cloud-terraform)
|
|
|
+
|
|
|
+### 使用 AWS CDK 進行部署
|
|
|
+
|
|
|
+使用 [CDK](https://aws.amazon.com/cdk/) 部署 Dify 到 AWS
|
|
|
+
|
|
|
+### AWS
|
|
|
+
|
|
|
+- [由 @KevinZhao 提供的 AWS CDK](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)
|
|
|
+
|
|
|
+## 貢獻
|
|
|
+
|
|
|
+對於想要貢獻程式碼的開發者,請參閱我們的[貢獻指南](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)。
|
|
|
+同時,也請考慮透過在社群媒體和各種活動與會議上分享 Dify 來支持我們。
|
|
|
+
|
|
|
+> 我們正在尋找貢獻者協助將 Dify 翻譯成中文和英文以外的語言。如果您有興趣幫忙,請查看 [i18n README](https://github.com/langgenius/dify/blob/main/web/i18n/README.md) 獲取更多資訊,並在我們的 [Discord 社群伺服器](https://discord.gg/8Tpq4AcN9c) 的 `global-users` 頻道留言給我們。
|
|
|
+
|
|
|
+## 社群與聯絡方式
|
|
|
+
|
|
|
+- [Github Discussion](https://github.com/langgenius/dify/discussions):最適合分享反饋和提問。
|
|
|
+- [GitHub Issues](https://github.com/langgenius/dify/issues):最適合報告使用 Dify.AI 時遇到的問題和提出功能建議。請參閱我們的[貢獻指南](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)。
|
|
|
+- [Discord](https://discord.gg/FngNHpbcY7):最適合分享您的應用程式並與社群互動。
|
|
|
+- [X(Twitter)](https://twitter.com/dify_ai):最適合分享您的應用程式並與社群互動。
|
|
|
+
|
|
|
+**貢獻者**
|
|
|
+
|
|
|
+<a href="https://github.com/langgenius/dify/graphs/contributors">
|
|
|
+ <img src="https://contrib.rocks/image?repo=langgenius/dify" />
|
|
|
+</a>
|
|
|
+
|
|
|
+## 星星歷史
|
|
|
+
|
|
|
+[](https://star-history.com/#langgenius/dify&Date)
|
|
|
+
|
|
|
+## 安全揭露
|
|
|
+
|
|
|
+為保護您的隱私,請避免在 GitHub 上發布安全性問題。請將您的問題發送至 security@dify.ai,我們將為您提供更詳細的答覆。
|
|
|
+
|
|
|
+## 授權條款
|
|
|
+
|
|
|
+本代碼庫採用 [Dify 開源授權](LICENSE),這基本上是 Apache 2.0 授權加上一些額外限制條款。
|