2025-10-05 12:47:32 +08:00
|
|
|
|

|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
|
|
|
|
|
<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> ·
|
2025-04-22 16:07:26 +08:00
|
|
|
|
<a href="https://dify.ai/pricing">產品方案概覽</a>
|
2025-03-06 22:36:05 +08:00
|
|
|
|
</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">
|
2025-10-05 12:47:32 +08:00
|
|
|
|
<a href="../../README.md"><img alt="README in English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
|
|
|
|
|
<a href="../zh-TW/README.md"><img alt="繁體中文文件" src="https://img.shields.io/badge/繁體中文-d9d9d9"></a>
|
|
|
|
|
|
<a href="../zh-CN/README.md"><img alt="简体中文文件" src="https://img.shields.io/badge/简体中文-d9d9d9"></a>
|
|
|
|
|
|
<a href="../ja-JP/README.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
|
|
|
|
|
<a href="../es-ES/README.md"><img alt="README en Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
|
|
|
|
|
<a href="../fr-FR/README.md"><img alt="README en Français" src="https://img.shields.io/badge/Français-d9d9d9"></a>
|
|
|
|
|
|
<a href="../tlh/README.md"><img alt="README tlhIngan Hol" src="https://img.shields.io/badge/Klingon-d9d9d9"></a>
|
|
|
|
|
|
<a href="../ko-KR/README.md"><img alt="README in Korean" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
|
|
|
|
|
<a href="../ar-SA/README.md"><img alt="README بالعربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
|
|
|
|
|
<a href="../tr-TR/README.md"><img alt="Türkçe README" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
|
|
|
|
|
<a href="../vi-VN/README.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="../de-DE/README.md"><img alt="README in Deutsch" src="https://img.shields.io/badge/German-d9d9d9"></a>
|
2025-03-06 22:36:05 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
Dify 是一個開源的 LLM 應用程式開發平台。其直觀的界面結合了智能代理工作流程、RAG 管道、代理功能、模型管理、可觀察性功能等,讓您能夠快速從原型進展到生產環境。
|
|
|
|
|
|
|
|
|
|
|
|
## 快速開始
|
|
|
|
|
|
|
|
|
|
|
|
> 安裝 Dify 之前,請確保您的機器符合以下最低系統要求:
|
|
|
|
|
|
>
|
|
|
|
|
|
> - CPU >= 2 核心
|
|
|
|
|
|
> - 記憶體 >= 4 GiB
|
|
|
|
|
|
|
|
|
|
|
|
</br>
|
|
|
|
|
|
|
2025-10-05 12:47:32 +08:00
|
|
|
|
啟動 Dify 伺服器最簡單的方式是透過 [docker compose](../../docker/docker-compose.yaml)。在使用以下命令運行 Dify 之前,請確保您的機器已安裝 [Docker](https://docs.docker.com/get-docker/) 和 [Docker Compose](https://docs.docker.com/compose/install/):
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
|
|
|
|
|
```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 工作流程,利用以下所有功能及更多。
|
|
|
|
|
|
|
|
|
|
|
|
**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 整合到您自己的業務邏輯中。
|
|
|
|
|
|
|
|
|
|
|
|
## 使用 Dify
|
|
|
|
|
|
|
|
|
|
|
|
- **雲端服務 </br>**
|
|
|
|
|
|
我們提供 [Dify Cloud](https://dify.ai) 服務,任何人都可以零配置嘗試。它提供與自部署版本相同的所有功能,並在沙盒計劃中包含 200 次免費 GPT-4 調用。
|
|
|
|
|
|
|
|
|
|
|
|
- **自託管 Dify 社區版</br>**
|
2025-08-20 13:49:11 +08:00
|
|
|
|
使用這份[快速指南](#%E5%BF%AB%E9%80%9F%E9%96%8B%E5%A7%8B)在您的環境中快速運行 Dify。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
使用我們的[文檔](https://docs.dify.ai)獲取更多參考和深入指導。
|
|
|
|
|
|
|
|
|
|
|
|
- **企業/組織版 Dify</br>**
|
2025-08-20 13:49:11 +08:00
|
|
|
|
我們提供額外的企業中心功能。[通過這個聊天機器人記錄您的問題](https://udify.app/chat/22L1zSxg6yW1cWQg)或[發送電子郵件給我們](mailto:business@dify.ai?subject=%5BGitHub%5DBusiness%20License%20Inquiry)討論企業需求。</br>
|
|
|
|
|
|
|
2025-03-06 22:36:05 +08:00
|
|
|
|
> 對於使用 AWS 的初創企業和小型企業,請查看 [AWS Marketplace 上的 Dify Premium](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6),並一鍵部署到您自己的 AWS VPC。這是一個經濟實惠的 AMI 產品,可選擇使用自定義徽標和品牌創建應用。
|
|
|
|
|
|
|
|
|
|
|
|
## 保持領先
|
|
|
|
|
|
|
|
|
|
|
|
在 GitHub 上為 Dify 加星,即時獲取新版本通知。
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
## 進階設定
|
|
|
|
|
|
|
2025-10-05 12:47:32 +08:00
|
|
|
|
如果您需要自定義配置,請參考我們的 [.env.example](../../docker/.env.example) 文件中的註釋,並在您的 `.env` 文件中更新相應的值。此外,根據您特定的部署環境和需求,您可能需要調整 `docker-compose.yaml` 文件本身,例如更改映像版本、端口映射或卷掛載。進行任何更改後,請重新運行 `docker-compose up -d`。您可以在[這裡](https://docs.dify.ai/getting-started/install-self-hosted/environments)找到可用環境變數的完整列表。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
2025-10-18 23:24:35 +08:00
|
|
|
|
### 使用 Grafana 進行指標監控
|
|
|
|
|
|
|
|
|
|
|
|
將儀表板匯入 Grafana,使用 Dify 的 PostgreSQL 資料庫作為資料來源,以監控應用程式、租戶、訊息等顆粒度的指標。
|
|
|
|
|
|
|
|
|
|
|
|
- [由 @bowenliang123 提供的 Grafana 儀表板](https://github.com/bowenliang123/dify-grafana-dashboard)
|
|
|
|
|
|
|
|
|
|
|
|
### 使用 Kubernetes 部署
|
|
|
|
|
|
|
2025-07-15 09:34:17 +08:00
|
|
|
|
如果您想配置高可用性設置,社區貢獻的 [Helm Charts](https://helm.sh/) 和 Kubernetes 資源清單(YAML)允許在 Kubernetes 上部署 Dify。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
|
|
|
|
|
- [由 @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)
|
2025-03-20 09:28:09 +08:00
|
|
|
|
- [由 @wyy-holding 提供的 YAML 文件](https://github.com/wyy-holding/dify-k8s)
|
2025-07-15 09:34:17 +08:00
|
|
|
|
- [🚀 NEW! YAML 檔案(支援 Dify v1.6.0)by @Zhoneym](https://github.com/Zhoneym/DifyAI-Kubernetes)
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
|
|
|
|
|
### 使用 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
|
|
|
|
|
|
|
2025-08-15 16:18:53 +09:00
|
|
|
|
- [由 @KevinZhao 提供的 AWS CDK (EKS based)](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)
|
|
|
|
|
|
- [由 @tmokmss 提供的 AWS CDK (ECS based)](https://github.com/aws-samples/dify-self-hosted-on-aws)
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
2025-06-20 20:10:45 +08:00
|
|
|
|
#### 使用 阿里云计算巢進行部署
|
|
|
|
|
|
|
|
|
|
|
|
[阿里云](https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=Dify%E7%A4%BE%E5%8C%BA%E7%89%88)
|
|
|
|
|
|
|
2025-06-24 09:40:58 +08:00
|
|
|
|
#### 使用 阿里雲數據管理DMS 進行部署
|
|
|
|
|
|
|
|
|
|
|
|
透過 [阿里雲數據管理DMS](https://www.alibabacloud.com/help/en/dms/dify-in-invitational-preview/),一鍵將 Dify 部署至阿里雲
|
|
|
|
|
|
|
2025-08-01 14:22:59 +08:00
|
|
|
|
#### 使用 Azure Devops Pipeline 部署到AKS
|
|
|
|
|
|
|
|
|
|
|
|
使用[Azure Devops Pipeline Helm Chart by @LeoZhang](https://github.com/Ruiruiz30/Dify-helm-chart-AKS) 將 Dify 一鍵部署到 AKS
|
|
|
|
|
|
|
2025-03-06 22:36:05 +08:00
|
|
|
|
## 貢獻
|
|
|
|
|
|
|
2025-10-05 12:47:32 +08:00
|
|
|
|
對於想要貢獻程式碼的開發者,請參閱我們的[貢獻指南](./CONTRIBUTING.md)。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
同時,也請考慮透過在社群媒體和各種活動與會議上分享 Dify 來支持我們。
|
|
|
|
|
|
|
2025-07-29 21:36:32 +08:00
|
|
|
|
> 我們正在尋找貢獻者協助將 Dify 翻譯成中文和英文以外的語言。如果您有興趣幫忙,請查看 [i18n README](https://github.com/langgenius/dify/blob/main/web/i18n-config/README.md) 獲取更多資訊,並在我們的 [Discord 社群伺服器](https://discord.gg/8Tpq4AcN9c) 的 `global-users` 頻道留言給我們。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
|
|
|
|
|
|
## 社群與聯絡方式
|
|
|
|
|
|
|
2025-05-26 16:33:12 +08:00
|
|
|
|
- [GitHub Discussion](https://github.com/langgenius/dify/discussions):最適合分享反饋和提問。
|
2025-10-05 12:47:32 +08:00
|
|
|
|
- [GitHub Issues](https://github.com/langgenius/dify/issues):最適合報告使用 Dify.AI 時遇到的問題和提出功能建議。請參閱我們的[貢獻指南](./CONTRIBUTING.md)。
|
2025-03-06 22:36:05 +08:00
|
|
|
|
- [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,我們將為您提供更詳細的答覆。
|
|
|
|
|
|
|
|
|
|
|
|
## 授權條款
|
|
|
|
|
|
|
2025-10-05 12:47:32 +08:00
|
|
|
|
本代碼庫採用 [Dify 開源授權](../../LICENSE),這基本上是 Apache 2.0 授權加上一些額外限制條款。
|