Refine knowledge brain workflow

Align the brain prompts, graph view, and startup defaults with the
latest phase 1 flow so local runs and navigation stay consistent.
This commit is contained in:
2026-03-22 22:42:47 +08:00
parent 67ea3d2682
commit 6f594631e9
23 changed files with 1508 additions and 526 deletions

View File

@@ -33,16 +33,16 @@ start.bat
### 手动启动
```bash
# 1. 配置 API Key
cd backend
cp .env.example .env
# 编辑 .env填入 ANTHROPIC_API_KEY
# 1. 配置项目根目录环境变量
cp backend/.env.example .env
# 编辑项目根目录 .env
# 2. 安装依赖
cd backend
uv sync
# 3. 启动后端
uv run uvicorn app.main:app --reload --port 8000
# 3. 启动后端(按项目根目录 .env
uv run uvicorn app.main:app --reload --host "$HOST" --port "$PORT"
# 4. 新终端,启动前端
cd frontend
@@ -60,7 +60,7 @@ npm run dev
## API 文档
后端启动后,访问 http://localhost:8000/docs 查看交互式 API 文档。
后端启动后,访问 `http://<HOST>:<PORT>/docs` 查看交互式 API 文档(以项目根目录 `.env` 为准)
### 主要接口