docs: add frontend build steps to server installation guide

This commit is contained in:
yangdx 2025-10-29 21:54:47 +08:00
parent 0fa2fc9cab
commit 8af8bd80d2
2 changed files with 24 additions and 8 deletions

View file

@ -104,18 +104,26 @@ lightrag-server
git clone https://github.com/HKUDS/LightRAG.git git clone https://github.com/HKUDS/LightRAG.git
cd LightRAG cd LightRAG
# 如有必要创建Python虚拟环境 # 如有必要创建Python虚拟环境
# 以可编辑模式安装并支持API # 以可开发编辑模式安装LightRAG服务器
pip install -e ".[api]" pip install -e ".[api]"
cp env.example .env
cp env.example .env # 使用你的LLM和Embedding模型访问参数更新.env文件
# 构建前端代码
cd lightrag_webui
bun install --frozen-lockfile
bun run build
cd ..
lightrag-server lightrag-server
``` ```
* 使用 Docker Compose 启动 LightRAG 服务器 * 使用 Docker Compose 启动 LightRAG 服务器
``` ```bash
git clone https://github.com/HKUDS/LightRAG.git git clone https://github.com/HKUDS/LightRAG.git
cd LightRAG cd LightRAG
cp env.example .env cp env.example .env # 使用你的LLM和Embedding模型访问参数更新.env文件
# modify LLM and Embedding settings in .env # modify LLM and Embedding settings in .env
docker compose up docker compose up
``` ```

View file

@ -103,19 +103,27 @@ lightrag-server
```bash ```bash
git clone https://github.com/HKUDS/LightRAG.git git clone https://github.com/HKUDS/LightRAG.git
cd LightRAG cd LightRAG
# create a Python virtual enviroment if neccesary # Create a Python virtual enviroment if neccesary
# Install in editable mode with API support # Install in editable mode with API support
pip install -e ".[api]" pip install -e ".[api]"
cp env.example .env
cp env.example .env # Update the .env with your LLM and embedding configurations
# Build front-end artifacts
cd lightrag_webui
bun install --frozen-lockfile
bun run build
cd ..
lightrag-server lightrag-server
``` ```
* Launching the LightRAG Server with Docker Compose * Launching the LightRAG Server with Docker Compose
``` ```bash
git clone https://github.com/HKUDS/LightRAG.git git clone https://github.com/HKUDS/LightRAG.git
cd LightRAG cd LightRAG
cp env.example .env cp env.example .env # Update the .env with your LLM and embedding configurations
# modify LLM and Embedding settings in .env # modify LLM and Embedding settings in .env
docker compose up docker compose up
``` ```