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:
14
README.md
14
README.md
@@ -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` 为准)。
|
||||
|
||||
### 主要接口
|
||||
|
||||
|
||||
Reference in New Issue
Block a user