Core Components: - PDFStorageService with Dify/OSS adapters - LLM12FieldsService with Nougat-first + dual-model + 3-layer JSON parsing - PromptBuilder for dynamic prompt assembly - MedicalLogicValidator with 5 rules + fault tolerance - EvidenceChainValidator for citation integrity - ConflictDetectionService for dual-model comparison Prompt Engineering: - System Prompt (6601 chars, Section-Aware strategy) - User Prompt template (PICOS context injection) - JSON Schema (12 fields constraints) - Cochrane standards (not loaded in MVP) Key Innovations: - 3-layer JSON parsing (JSON.parse + json-repair + code block extraction) - Promise.allSettled for dual-model fault tolerance - safeGetFieldValue for robust field extraction - Mixed CN/EN token calculation Integration Tests: - integration-test.ts (full test) - quick-test.ts (quick test) - cached-result-test.ts (fault tolerance test) Documentation Updates: - Development record (Day 2-3 summary) - Quality assurance strategy (full-text screening) - Development plan (progress update) - Module status (v1.1 update) - Technical debt (10 new items) Test Results: - JSON parsing success rate: 100% - Medical logic validation: 5/5 passed - Dual-model parallel processing: OK - Cost per PDF: CNY 0.10 Files: 238 changed, 14383 insertions(+), 32 deletions(-) Docs: docs/03-涓氬姟妯″潡/ASL-AI鏅鸿兘鏂囩尞/05-寮€鍙戣褰?2025-11-22_Day2-Day3_LLM鏈嶅姟涓庨獙璇佺郴缁熷紑鍙?md
1.7 KiB
1.7 KiB
[模块代号] - [模块名称]
模块代号: [代号] ([英文全称])
开发状态: [✅已完成 / ⏳开发中 / ⏳规划中]
商业价值: ⭐⭐⭐⭐⭐ [评级]
独立性: ⭐⭐⭐⭐⭐ [评级]
优先级: [P0/P1/P2]
📋 模块概述
[2-3句话描述模块核心功能和价值]
核心价值: [核心差异化点]
🎯 核心功能
[已完成功能 / 计划功能]
- [✅/⏳] 功能1 - 简要描述
- [✅/⏳] 功能2 - 简要描述
- [✅/⏳] 功能3 - 简要描述
[本周/下一步]重点: [当前重点]
📂 文档结构
[模块代号]-[模块名称]/
├── [AI对接] [代号]快速上下文.md # [状态]
├── 00-项目概述/
│ ├── 01-产品需求文档(PRD).md # [状态]
│ └── README.md
├── 01-设计文档/
│ ├── 01-技术架构设计.md # [状态]
│ ├── 02-数据库设计.md # [状态]
│ ├── 03-API设计.md # [状态]
│ └── README.md
├── 02-业务规则/
├── 03-开发计划/
├── 04-测试文档/
└── README.md # ✅ 当前文档
🔗 依赖的通用能力
- [能力1] - [用途]
- [能力2] - [用途]
🎯 商业模式
目标客户: [目标客户群]
售卖方式: [独立产品 / 组合售卖 / 平台功能]
定价策略: [定价方式]
⚠️ [技术难点 / 核心特色]
[如果有特别的技术难点或核心特色,在这里说明]
最后更新: [日期]
维护人: 技术架构师