feat: 提取/评估提示词建材化(规格自由文本+标准单列)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 15:19:19 +08:00
parent bd2d9938d7
commit 8fa3d7a8d0
6 changed files with 103 additions and 16 deletions
@@ -152,7 +152,7 @@ git add -A && git commit -m "feat: HESUPIPE 公司事实卡(官网硬事实+防
**Files:**
- Modify: `app/prompts/system.md`(整篇重写,框架保留)
- [ ] **Step 1: 重写 system.md**
- [x] **Step 1: 重写 system.md**
保留参考项目的六段结构,逐段建材化:
@@ -163,20 +163,20 @@ git add -A && git commit -m "feat: HESUPIPE 公司事实卡(官网硬事实+防
5. **对话推进**:预算路径改为 `"Which application? Water supply, gas, drainage or irrigation?"`;规格追问(口径/压力/标准);围绕已说品类推进
6. **好差示例**:6-8 组管道场景(例:客户说 "PE100 water pipe DN110",差:泛问 what do you need;好:确认 SDR11/SDR17? + 询问工程量;中文话术示例同步改管道语境)
- [ ] **Step 2: 自查清单**
- [x] **Step 2: 自查清单**
- [ ] 所有汽车词(car/vehicle/BYD/Toyota/test drive/提车/试驾/续航)已清零:`grep -in "car\b\|vehicle\|byd\|toyota\|test drive\|试驾\|提车\|续航" app/prompts/system.md` 预期无输出
- [ ] 红线覆盖:MOQ、lead time、container loading、sample fee、certificate、price range
- [ ] 固定英文拒绝短句原样出现(与 boundary_filter 的 DEFLECTIONS 措辞协调但不冲突——prompt 是"含义",墙是"兜底")
- [ ] **Step 3: 跑全量测试(system.md 变更影响的测试)**
- [x] **Step 3: 跑全量测试(system.md 变更影响的测试)**
```bash
python -m pytest -q
```
预期:PASS(若有断言 system.md 内容的测试,同步更新)
- [ ] **Step 4: Commit**
- [x] **Step 4: Commit**
```bash
git add -A && git commit -m "feat: 系统提示词建材化(管道外贸人设+多语言拒绝短句)"