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:
@@ -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` 为准)。
|
||||
|
||||
## 环境变量
|
||||
|
||||
|
||||
Reference in New Issue
Block a user