flowise low code 的 RAG系統
自上篇LlamaIndex 自訂義RAG 系統
如果覺得寫程式更改很麻煩,flowise
這個開源專案很好的結合了工作流 跟low code應用
官方部屬文件
github
https://github.com/FlowiseAI/Flowise
docs
部屬方法
clone public repo
1
git clone https://github.com/FlowiseAI/Flowise.git
安裝docker 及 docker compose
這部分可參考官方說明https://docs.docker.com/engine/install/cd docker and copy .env.template
1
2cd docker &&
cp .env.example .env更改
.env
主要要更改的部分有- FILE_SIZE_LIMIT: 避免embedding pdf 檔案過大
- USERNAME / PASSWORD
- CORS相關設定,若要嵌入至其他網頁時若沒有設定會被擋
- DATABASE 如果有要做連接資料須寫在這邊
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37PORT=4000
DATABASE_PATH=/root/.flowise
APIKEY_PATH=/root/.flowise
SECRETKEY_PATH=/root/.flowise
LOG_PATH=/root/.flowise/logs
BLOB_STORAGE_PATH=/root/.flowise/storage
CORS_ORIGINS="*"
IFRAME_ORIGINS="*"
EMBEDDING_ORIGINS="*"
# NUMBER_OF_PROXIES= 1
# DATABASE_TYPE=postgres
# DATABASE_PORT=""
# DATABASE_HOST=""
# DATABASE_NAME="flowise"
# DATABASE_USER=""
# DATABASE_PASSWORD=""
# DATABASE_SSL=true
# DATABASE_SSL_KEY_BASE64=<Self signed certificate in BASE64>
FLOWISE_USERNAME=it
FLOWISE_PASSWORD=itit
# FLOWISE_SECRETKEY_OVERWRITE=myencryptionkey
FLOWISE_FILE_SIZE_LIMIT=200mb
# DEBUG=true
# LOG_LEVEL=debug (error | warn | info | verbose | debug)
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs
# TOOL_FUNCTION_EXTERNAL_DEP=moment,lodash
# LANGCHAIN_TRACING_V2=true
# LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
# LANGCHAIN_API_KEY=your_api_key
# LANGCHAIN_PROJECT=your_project
# DISABLE_FLOWISE_TELEMETRY=true
起
docker compose
1
docker compose up -d
起來之後就會在設定的 port
flowise low code 的 RAG系統
https://shengshengyang.github.io/2024/04/03/flowise/