chore: initialize medical consultation agent demo
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Backend
|
||||
|
||||
医疗问诊 Agent 第一版 Demo 后端工程。
|
||||
|
||||
## 启动流程
|
||||
|
||||
```bash
|
||||
cd backend
|
||||
python -m venv .venv
|
||||
.venv\Scripts\activate
|
||||
pip install -r requirements.txt
|
||||
copy ..\.env.example ..\.env
|
||||
python -m scripts.init_demo_db
|
||||
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
## 核心约束
|
||||
|
||||
- 所有业务接口通过 `X-User-Id` 做用户隔离。
|
||||
- 问诊消息进入短期 memory,不作为长期历史保存。
|
||||
- 检查检验结果只从数据库读取。
|
||||
- 完整训练结束后只保存评价记录、PDF 导出记录、学习档案和审计日志。
|
||||
- DeepSeek 调用统一经过 `agents/llm_adapter.py`。
|
||||
Reference in New Issue
Block a user