|
| 1 | +<!-- markdownlint-disable MD030 --> |
| 2 | + |
| 3 | +<img width="100%" src="https://github.com/FlowiseAI/Flowise/blob/main/images/flowise.png?raw=true"></a> |
| 4 | + |
| 5 | +# Flowise - 輕鬆構建 LLM 應用 |
| 6 | + |
| 7 | +[](https://github.com/FlowiseAI/Flowise/releases) |
| 8 | +[](https://discord.gg/jbaHfsRVBW) |
| 9 | +[](https://twitter.com/FlowiseAI) |
| 10 | +[](https://star-history.com/#FlowiseAI/Flowise) |
| 11 | +[](https://github.com/FlowiseAI/Flowise/fork) |
| 12 | + |
| 13 | +[English](../README.md) | 繁體中文 | [簡體中文](./i18n/README-ZH.md) | [日本語](./i18n/README-JA.md) | [한국어](./i18n/README-KR.md) |
| 14 | + |
| 15 | +<h3>拖放 UI 以構建自定義的 LLM 流程</h3> |
| 16 | +<a href="https://github.com/FlowiseAI/Flowise"> |
| 17 | +<img width="100%" src="https://github.com/FlowiseAI/Flowise/blob/main/images/flowise.gif?raw=true"></a> |
| 18 | + |
| 19 | +## ⚡快速開始 |
| 20 | + |
| 21 | +下載並安裝 [NodeJS](https://nodejs.org/en/download) >= 18.15.0 |
| 22 | + |
| 23 | +1. 安裝 Flowise |
| 24 | + ```bash |
| 25 | + npm install -g flowise |
| 26 | + ``` |
| 27 | +2. 啟動 Flowise |
| 28 | + |
| 29 | + ```bash |
| 30 | + npx flowise start |
| 31 | + ``` |
| 32 | + |
| 33 | + 使用用戶名和密碼 |
| 34 | + |
| 35 | + ```bash |
| 36 | + npx flowise start --FLOWISE_USERNAME=user --FLOWISE_PASSWORD=1234 |
| 37 | + ``` |
| 38 | + |
| 39 | +3. 打開 [http://localhost:3000](http://localhost:3000) |
| 40 | + |
| 41 | +## 🐳 Docker |
| 42 | + |
| 43 | +### Docker Compose |
| 44 | + |
| 45 | +1. 克隆 Flowise 項目 |
| 46 | +2. 進入項目根目錄的 `docker` 文件夾 |
| 47 | +3. 複製 `.env.example` 文件,粘貼到相同位置,並重命名為 `.env` 文件 |
| 48 | +4. `docker compose up -d` |
| 49 | +5. 打開 [http://localhost:3000](http://localhost:3000) |
| 50 | +6. 您可以通過 `docker compose stop` 停止容器 |
| 51 | + |
| 52 | +### Docker 映像 |
| 53 | + |
| 54 | +1. 本地構建映像: |
| 55 | + ```bash |
| 56 | + docker build --no-cache -t flowise . |
| 57 | + ``` |
| 58 | +2. 運行映像: |
| 59 | + |
| 60 | + ```bash |
| 61 | + docker run -d --name flowise -p 3000:3000 flowise |
| 62 | + ``` |
| 63 | + |
| 64 | +3. 停止映像: |
| 65 | + ```bash |
| 66 | + docker stop flowise |
| 67 | + ``` |
| 68 | + |
| 69 | +## 👨💻 開發者 |
| 70 | + |
| 71 | +Flowise 在單個 mono 存儲庫中有 3 個不同的模塊。 |
| 72 | + |
| 73 | +- `server`: 提供 API 邏輯的 Node 後端 |
| 74 | +- `ui`: React 前端 |
| 75 | +- `components`: 第三方節點集成 |
| 76 | +- `api-documentation`: 從 express 自動生成的 swagger-ui API 文檔 |
| 77 | + |
| 78 | +### 先決條件 |
| 79 | + |
| 80 | +- 安裝 [PNPM](https://pnpm.io/installation) |
| 81 | + ```bash |
| 82 | + npm i -g pnpm |
| 83 | + ``` |
| 84 | + |
| 85 | +### 設置 |
| 86 | + |
| 87 | +1. 克隆存儲庫 |
| 88 | + |
| 89 | + ```bash |
| 90 | + git clone https://github.com/FlowiseAI/Flowise.git |
| 91 | + ``` |
| 92 | + |
| 93 | +2. 進入存儲庫文件夾 |
| 94 | + |
| 95 | + ```bash |
| 96 | + cd Flowise |
| 97 | + ``` |
| 98 | + |
| 99 | +3. 安裝所有模塊的所有依賴項: |
| 100 | + |
| 101 | + ```bash |
| 102 | + pnpm install |
| 103 | + ``` |
| 104 | + |
| 105 | +4. 構建所有代碼: |
| 106 | + |
| 107 | + ```bash |
| 108 | + pnpm build |
| 109 | + ``` |
| 110 | + |
| 111 | + <details> |
| 112 | + <summary>退出代碼 134(JavaScript 堆內存不足)</summary> |
| 113 | + 如果在運行上述 `build` 腳本時遇到此錯誤,請嘗試增加 Node.js 堆大小並重新運行腳本: |
| 114 | + |
| 115 | + export NODE_OPTIONS="--max-old-space-size=4096" |
| 116 | + pnpm build |
| 117 | + |
| 118 | + </details> |
| 119 | + |
| 120 | +5. 啟動應用: |
| 121 | + |
| 122 | + ```bash |
| 123 | + pnpm start |
| 124 | + ``` |
| 125 | + |
| 126 | + 您現在可以訪問 [http://localhost:3000](http://localhost:3000) |
| 127 | + |
| 128 | +6. 對於開發構建: |
| 129 | + |
| 130 | + - 在 `packages/ui` 中創建 `.env` 文件並指定 `VITE_PORT`(參考 `.env.example`) |
| 131 | + - 在 `packages/server` 中創建 `.env` 文件並指定 `PORT`(參考 `.env.example`) |
| 132 | + - 運行 |
| 133 | + |
| 134 | + ```bash |
| 135 | + pnpm dev |
| 136 | + ``` |
| 137 | + |
| 138 | + 任何代碼更改都會自動重新加載應用程序 [http://localhost:8080](http://localhost:8080) |
| 139 | + |
| 140 | +## 🔒 認證 |
| 141 | + |
| 142 | +要啟用應用級別的身份驗證,請在 `packages/server` 中的 `.env` 文件中添加 `FLOWISE_USERNAME` 和 `FLOWISE_PASSWORD`: |
| 143 | + |
| 144 | +``` |
| 145 | +FLOWISE_USERNAME=user |
| 146 | +FLOWISE_PASSWORD=1234 |
| 147 | +``` |
| 148 | +
|
| 149 | +## 🌱 環境變量 |
| 150 | +
|
| 151 | +Flowise 支持不同的環境變量來配置您的實例。您可以在 `packages/server` 文件夾中的 `.env` 文件中指定以下變量。閱讀 [更多](https://github.com/FlowiseAI/Flowise/blob/main/CONTRIBUTING.md#-env-variables) |
| 152 | +
|
| 153 | +## 📖 文檔 |
| 154 | +
|
| 155 | +[Flowise 文檔](https://docs.flowiseai.com/) |
| 156 | +
|
| 157 | +## 🌐 自我托管 |
| 158 | +
|
| 159 | +在您現有的基礎設施中部署 Flowise 自我托管,我們支持各種 [部署](https://docs.flowiseai.com/configuration/deployment) |
| 160 | +
|
| 161 | +- [AWS](https://docs.flowiseai.com/configuration/deployment/aws) |
| 162 | +- [Azure](https://docs.flowiseai.com/configuration/deployment/azure) |
| 163 | +- [Digital Ocean](https://docs.flowiseai.com/configuration/deployment/digital-ocean) |
| 164 | +- [GCP](https://docs.flowiseai.com/configuration/deployment/gcp) |
| 165 | +- [阿里雲](https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=Flowise社区版) |
| 166 | +- <details> |
| 167 | + <summary>其他</summary> |
| 168 | +
|
| 169 | + - [Railway](https://docs.flowiseai.com/configuration/deployment/railway) |
| 170 | +
|
| 171 | + [](https://railway.app/template/pn4G8S?referralCode=WVNPD9) |
| 172 | +
|
| 173 | + - [Render](https://docs.flowiseai.com/configuration/deployment/render) |
| 174 | +
|
| 175 | + [](https://docs.flowiseai.com/configuration/deployment/render) |
| 176 | +
|
| 177 | + - [HuggingFace Spaces](https://docs.flowiseai.com/deployment/hugging-face) |
| 178 | +
|
| 179 | + <a href="https://huggingface.co/spaces/FlowiseAI/Flowise"><img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="HuggingFace Spaces"></a> |
| 180 | +
|
| 181 | + - [Elestio](https://elest.io/open-source/flowiseai) |
| 182 | +
|
| 183 | + [](https://elest.io/open-source/flowiseai) |
| 184 | +
|
| 185 | + - [Sealos](https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dflowise) |
| 186 | +
|
| 187 | + [](https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dflowise) |
| 188 | +
|
| 189 | + - [RepoCloud](https://repocloud.io/details/?app_id=29) |
| 190 | +
|
| 191 | + [](https://repocloud.io/details/?app_id=29) |
| 192 | +
|
| 193 | + </details> |
| 194 | +
|
| 195 | +## ☁️ Flowise 雲 |
| 196 | +
|
| 197 | +[開始使用 Flowise 雲](https://flowiseai.com/) |
| 198 | +
|
| 199 | +## 🙋 支持 |
| 200 | +
|
| 201 | +隨時在 [討論](https://github.com/FlowiseAI/Flowise/discussions) 中提出任何問題、提出問題和請求新功能 |
| 202 | +
|
| 203 | +## 🙌 貢獻 |
| 204 | +
|
| 205 | +感謝這些出色的貢獻者 |
| 206 | +
|
| 207 | +<a href="https://github.com/FlowiseAI/Flowise/graphs/contributors"> |
| 208 | +<img src="https://contrib.rocks/image?repo=FlowiseAI/Flowise" /> |
| 209 | +</a> |
| 210 | +
|
| 211 | +請參閱 [貢獻指南](CONTRIBUTING.md)。如果您有任何問題或問題,請通過 [Discord](https://discord.gg/jbaHfsRVBW) 與我們聯繫。 |
| 212 | +[](https://star-history.com/#FlowiseAI/Flowise&Date) |
| 213 | +
|
| 214 | +## 📄 許可證 |
| 215 | +
|
| 216 | +此存儲庫中的源代碼根據 [Apache 許可證版本 2.0](LICENSE.md) 提供。 |
0 commit comments