# AnythingLLM WebUI (1) 系統安裝教學 ## :memo: Where do I start? - 聯絡窗口 Email us : 2303117@narlabs.org.tw 王小姐 https://www.youtube.com/watch?v=C7uCXbckmwg https://www.youtube.com/watch?v=C7uCXbckmwg - chunk size: https://medium.com/@stepkurniawan/rag-chunk-size-experiment-e5e5ca437f44 ## 安裝 ANYTHINGLLM ### Linux 1. 建立storage資料夾與env.txt ``` mkdir -p $HOME/demo_class/storage touch $HOME/demo_class/env.txt ``` 2. 打開終端機, 啟動anythingllm - Docker 指令 ``` docker stop anythingllm docker rm anythingllm docker run -d -p 3001:3001 \ --cap-add SYS_ADMIN \ -v $HOME/demo_class/storage:/app/server/storage \ -v $HOME/demo_class/env.txt:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ --add-host=host.docker.internal:host-gateway \ --name anythingllm \ mintplexlabs/anythingllm ``` - 打開瀏覽器 ``` http://localhost:3001 或 http://$你的IP:3001 ``` 3. 補充啟動https ssl - $HOME/demo_class/ssl資料夾放置憑證 ``` $HOME/demo_class/ssl/server.cer $HOME/demo_class/ssl/privatekey.key ``` - $HOME/demo_class/env.txt 填上以下內容 ``` ENABLE_HTTPS='true' HTTPS_CERT_PATH='/app/ssl/server.cer' HTTPS_KEY_PATH='/app/ssl/privatekey.key' ``` - docker 指令補上這一行 ``` -v $HOME/demo_class/ssl:/app/ssl \ ``` - 執行指令後打開瀏覽器 ``` https://localhost:3001 或 https://$你的IP:3001 ``` ### Windows 1. 建立storage資料夾與env.txt ``` D:/demo_class/demo_class/storage D:/demo_class/demo_class/env.txt ``` 2. 打開power shell, 啟動anythingllm - Docker 指令 ``` docker stop anythingllm docker rm anythingllm docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v D:/demo_class/storage:/app/server/storage -v D:/demo_class/env.txt:/app/server/.env -e STORAGE_DIR="/app/server/storage" --add-host=host.docker.internal:host-gateway --name anythingllm mintplexlabs/anythingllm ``` - 打開瀏覽器 ``` http://localhost:3001 或 http://$你的IP:3001 ``` 3. 補充啟動https ssl - D:/demo_class/demo_class/ssl資料夾放置憑證 ``` D:/demo_class/ssl/server.cer D:/demo_class/ssl/privatekey.key ``` - D:/demo_class/demo_class/env.txt 填上以下內容 ``` ENABLE_HTTPS='true' HTTPS_CERT_PATH='/app/ssl/server.cer' HTTPS_KEY_PATH='/app/ssl/privatekey.key' ``` - docker 指令補上這一行 ``` -v D:/demo_class/ssl:/app/ssl \ ``` - 執行指令後打開瀏覽器 ``` https://localhost:3001 或 https://$你的IP:3001 ``` ### Mac osX 1. 建立storage資料夾與env.txt ``` mkdir -p $HOME/demo_class/storage touch $HOME/demo_class/env.txt ``` 2. 打開終端機, 啟動anythingllm - Docker 指令 ``` docker stop anythingllm docker rm anythingllm docker run -d -p 3001:3001 \ --cap-add SYS_ADMIN \ -v $HOME/demo_class/storage:/app/server/storage \ -v $HOME/demo_class/env.txt:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ --add-host=host.docker.internal:host-gateway \ --name anythingllm \ mintplexlabs/anythingllm ``` - 打開瀏覽器 ``` http://localhost:3001 或 http://$你的IP:3001 ``` 3. 補充啟動https ssl - $HOME/demo_class/ssl資料夾放置憑證 ``` $HOME/demo_class/ssl/server.cer $HOME/demo_class/ssl/privatekey.key ``` - $HOME/demo_class/env.txt 填上以下內容 ``` ENABLE_HTTPS='true' HTTPS_CERT_PATH='/app/ssl/server.cer' HTTPS_KEY_PATH='/app/ssl/privatekey.key' ``` - docker 指令補上這一行 ``` -v $HOME/demo_class/ssl:/app/ssl \ ``` - 執行指令後打開瀏覽器 ``` https://localhost:3001 或 https://$你的IP:3001 ``` ## DOCKER 網路補充說明 - 在container内,可以直接请求host.docker.internal:PORT, ``` # docker run --add-host=host.docker.internal:host-gateway # docker-compose extra_hosts: "host.docker.internal:host-gateway" # VECTOR_DB="chroma" CHROMA_ENDPOINT='http://host.docker.internal:8000' ``` ## :movie_camera: 影片教學 ### AnythingLLM 安裝 (DOCKER) {%youtube oMaIsmayr7A %}
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up