fix: 事实卡质量审查修复(测试大小写/标题/等字说明/单位)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 14:44:36 +08:00
parent 7d0d28406c
commit adefd57149
3 changed files with 11 additions and 11 deletions
@@ -94,7 +94,7 @@ git add -A && git commit -m "chore: 从汽车AI客服项目拷贝骨架并清理
- Modify: `app/prompts/company_facts.md`(整体重写)
- Test: `tests/test_company_facts.py`(更新断言)
- [ ] **Step 1: 抓取官网资料**
- [x] **Step 1: 抓取官网资料**
用 WebFetch 依次抓取(提取硬事实,忽略模板化文案):
- `https://hesupipe.com/`(已抓取过:公司概况/十大产品线/联系方式)
@@ -104,7 +104,7 @@ git add -A && git commit -m "chore: 从汽车AI客服项目拷贝骨架并清理
- `https://hesupipe.com/sales-network/`(销售网络/出口国家)
- 新闻页 1-2 篇真实项目案例(如智利农业供水管项目)
- [ ] **Step 2: 重写事实卡**
- [x] **Step 2: 重写事实卡**
保留参考项目事实卡的**结构框架和使用规则段**(防编造的"统一兜底/不扩展"原则原样保留),替换内容段。结构:
@@ -126,18 +126,18 @@ git add -A && git commit -m "chore: 从汽车AI客服项目拷贝骨架并清理
**红线自查**:不含价格、交期、MOQ、产能数字;不收录"world-class"类模板化空话。
- [ ] **Step 3: 更新 test_company_facts.py 断言**
- [x] **Step 3: 更新 test_company_facts.py 断言**
改为断言建材关键词(如 `HESUPIPE`、`HDPE` 或实际产品词)存在、汽车词(`BYD`/`Hesu Auto`/`vehicle`)不存在。
- [ ] **Step 4: 跑测试**
- [x] **Step 4: 跑测试**
```bash
python -m pytest tests/test_company_facts.py -q
```
预期:PASS
- [ ] **Step 5: Commit**
- [x] **Step 5: Commit**
```bash
git add -A && git commit -m "feat: HESUPIPE 公司事实卡(官网硬事实+防编造规则)"