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

@@ -12,19 +12,20 @@ uv sync
### 2. 配置环境变量
```bash
cp .env.example .env
# 编辑 .env 填入 API Key
cd ..
cp backend/.env.example .env
# 编辑项目根目录 .env
```
### 3. 启动开发服务器
```bash
uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 9527
uv run uvicorn app.main:app --reload --host "$HOST" --port "$PORT"
```
### 4. API 文档
启动后访问 http://localhost:9527/docs 查看交互式 API 文档。
启动后访问 `http://<HOST>:<PORT>/docs` 查看交互式 API 文档(以项目根目录 `.env` 中的 `HOST``PORT` 为准)
## 环境变量