Files
AIclinicalresearch/START-HERE-FOR-AI.md
HaHafeng beb7f7f559 feat(asl): Implement full-text screening core LLM service and validation system (Day 1-3)
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
2025-11-22 22:21:12 +08:00

3.3 KiB
Raw Blame History

🤖 AI对话快速入口

欢迎新的AI对话 👋
本文档是您的快速入口3分钟了解项目全貌


📍 从这里开始

第一步:阅读核心对接文档

必读文档5-10分钟

📄 docs/[AI对接] 项目状态与下一步指南.md

这个文档包含:

  • 项目概况和技术栈
  • 当前架构状态(前后端、数据库)
  • 已完成的工作
  • 下一步明确任务
  • 必读文档清单
  • 关键技术信息
  • 常见问题速查

🚀 快速上手路径

如果是全新AI对话

阅读顺序:
1⃣ 本文档3分钟
2⃣ docs/[AI对接] 项目状态与下一步指南.md5-10分钟
3⃣ docs/08-项目管理/下一阶段行动计划-V2.2-完整版.md15分钟
4⃣ docs/00-系统总体设计/前后端模块化架构设计-V2.md10分钟

总计: 30-40分钟全面了解项目


如果是继续某个具体任务

直接跳转到:

  • 开发ASL模块 → 读 ASL需求分析文档 + CloseAI集成指南
  • 前端开发? → 读 前后端模块化架构设计-V2.md前端章节
  • 后端开发? → 读 前后端模块化架构设计-V2.md后端章节
  • 数据库设计? → 读 Schema隔离架构设计文档

🎯 当前状态速览

项目 状态 说明
数据库 已完成 10个Schema隔离11个表迁移完成
后端 功能正常 Prisma配置完成API正常工作
前端 框架完成 Frontend-v2创建6个模块占位
下一步 🎯 进行中 Week 2 Day 7 - 模块注册完善
重点任务 📋 Week 3-4 ASL模块开发4个LLM文献筛选

📞 获取帮助

遇到问题时:

  1. 技术问题 → 查阅 docs/07-运维文档/
  2. 架构疑问 → 查阅 docs/00-系统总体设计/
  3. 任务不明 → 查阅 docs/08-项目管理/下一阶段行动计划-V2.2-完整版.md
  4. 代码规范 → 查阅 docs/00-系统总体设计/前后端模块化架构设计-V2.md

🌟 核心文档清单

必读文档(

  1. docs/[AI对接] 项目状态与下一步指南.md - 从这里开始!
  2. docs/08-项目管理/下一阶段行动计划-V2.2-完整版.md - 详细计划
  3. docs/00-系统总体设计/前后端模块化架构设计-V2.md - 架构设计

重要文档(

  1. docs/09-架构实施/01-Schema隔离架构设计10个.md - 数据库设计
  2. docs/02-通用能力层/01-LLM大模型网关/03-CloseAI集成指南.md - LLM配置

参考文档(

  1. docs/03-业务模块/AIA-AI智能问答/02-技术设计/01-数据库设计.md
  2. docs/03-业务模块/PKB-个人知识库/02-技术设计/01-数据库设计.md
  3. docs/01-平台基础层/06-前端架构/01-前端总体架构设计.md

一句话总结

我们正在构建一个模块化的AI临床研究平台已完成数据库Schema隔离和前端框架搭建下一步是完善前端模块机制然后在Week 3-4开发AI智能文献模块支持4个LLM的文献筛选


文档路径: AIclinicalresearch/START-HERE-FOR-AI.md
最后更新: 2025-11-12 18:00

🤖 祝新的AI对话顺利 🚀