Anything LLM on Windows
以下是安裝 AnythingLLM 的步驟:
wsl -v
你的 WSL 版本是 2.4.13.0,核心版本是 5.15.167.4-1,已經準備好了。
wsl --install -d Ubuntu-22.04
安裝完成後,會要求你創建一個 UNIX 用戶帳戶,你創建了用戶名 。
sudo apt update sudo apt install -y docker.io sudo systemctl enable docker sudo systemctl start docker sudo usermod -aG docker $USER newgrp docker # 讓群組設定立即生效
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt install -y nodejs sudo npm install -g yarn
export STORAGE_LOCATION=$HOME/anythingllm mkdir -p $STORAGE_LOCATION touch "$STORAGE_LOCATION/.env" docker pull mintplexlabs/anythingllm
docker run -d -p 3001:3001 \ --cap-add SYS_ADMIN \ --add-host=host.docker.internal:host-gateway \ -v ${STORAGE_LOCATION}:/app/server/storage \ -v ${STORAGE_LOCATION}/.env:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ mintplexlabs/anythingllm
執行完成後,系統回傳了容器 ID
打開瀏覽器並訪問:
http://localhost:3001
如果你之後想要連接本地的 LLM(如 Ollama),可以在 .env 檔案中添加:
.env
OLLAMA_BASE_PATH=http://host.docker.internal:11434 EMBEDDING_BASE_PATH=http://host.docker.internal:11434
系統已成功下載 AnythingLLM 映像檔,並以守護進程模式運行。
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up