Commit 2e31eeb7 by luoqi

docs(ops): 重算对照表去掉「清简报缓存」列 — 它不是重算,降级为表下注记

清缓存与 reparse/persona/plan 不是一类动作(不重算、秒级、按需重生成),
放进同一张表会误导"改 prompt 也要跑重算"。改为表下引用块说明。

顺带修补编辑残留:表格首行多一列、③ 代码块缺收尾 ```。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
parent 60b0b705
Pipeline #3418 failed in 0 seconds
...@@ -115,16 +115,20 @@ docker compose -f docker-compose.prod.yml -f docker-compose.managed.yml <命令> ...@@ -115,16 +115,20 @@ docker compose -f docker-compose.prod.yml -f docker-compose.managed.yml <命令>
**大多数改动不用**。按改了什么对照: **大多数改动不用**。按改了什么对照:
| 改了什么 | reparse | persona | plan | 清简报缓存 | | 改了什么 | reparse | persona | plan |
|---|---|---|---|---| |---|---|---|---|
| 纯前端 / UI | — | — | — | — | | 纯前端 / UI | — | — | — |
| assembler yaml(字段映射、口径) | ✅ | ✅ | — | — | | assembler yaml(字段映射、口径) | ✅ | ✅ | — |
| persona 特征算法 | — | ✅ | ✅ | — | | persona 特征算法 | — | ✅ | ✅ |
| 召回引擎 / 优先级 / 诊所归属 | — | — | ✅ | — | | 召回引擎 / 优先级 / 诊所归属 | — | — | ✅ |
| 话术 / 简报 prompt | — | — | — | ✅ | | 话术 / 简报 prompt | — | — | — |
| 定向补数据(污染修复等) | — | ✅ | ✅ | — | | 定向补数据(污染修复等) | — | ✅ | ✅ |
> 改了话术 / 简报 prompt 不用重算,但**已缓存的旧内容不会自动重生成** ——
> 要立刻全量换新,清一次缓存即可(下次访问按需重生成):
> `delete from plan_summaries where type='recall_brief';`
**顺序固定:reparse → persona → plan → 清缓存**(persona 读事实、plan 读 persona)。 **顺序固定:reparse → persona → plan**(persona 读事实、plan 读 persona)。
```bash ```bash
# 进容器跑(生产;测试环境去掉 managed.yml 那段) # 进容器跑(生产;测试环境去掉 managed.yml 那段)
...@@ -142,9 +146,6 @@ $DC exec -T pac-service node --max-old-space-size=8192 \ ...@@ -142,9 +146,6 @@ $DC exec -T pac-service node --max-old-space-size=8192 \
# ③ plan 全量重算 # ③ plan 全量重算
$DC exec -T pac-service node --max-old-space-size=8192 \ $DC exec -T pac-service node --max-old-space-size=8192 \
dist/cli/recompute-plans.cli.js --host=jvs-dw dist/cli/recompute-plans.cli.js --host=jvs-dw
# ④ 清简报缓存(下次访问按需重生成)
$DC exec -T postgres psql -U pac -d pac -c "delete from plan_summaries where type='recall_brief';"
``` ```
**耗时参考(生产 40 万患者)**:reparse ~2h · persona ~4.5h · plan ~1h。 **耗时参考(生产 40 万患者)**:reparse ~2h · persona ~4.5h · plan ~1h。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment