Files
AIclinicalresearch/docs/03-业务模块/ADMIN-运营管理端/README.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

2.4 KiB
Raw Blame History

ADMIN - 运营管理端

模块代号: ADMIN (Administration)
开发状态: 规划中
商业价值: SaaS运营基础
独立性:
优先级: P1


📋 模块概述

运营管理端横跨所有层次是SaaS商业模式的技术基础。

核心价值: 实现多版本管理、成本控制、功能开关


🎯 核心功能15个模块

P0必须阶段一

  1. 用户管理 - 用户列表、详情、激活/禁用
  2. Feature Flag管理 - 版本功能控制(专业版/高级版/旗舰版)
  3. LLM模型管理 - 模型配置、成本配置、版本绑定
  4. 系统配置管理 - 全局配置、动态配置

P1重要阶段二

  1. 智能体提示词管理 - Prompt模板管理
  2. 监控与日志 - 操作日志、错误监控
  3. 数据统计与报表 - 用户统计、使用统计
  4. 成本分析与计费 - LLM成本统计、计费管理

P2有用阶段三

  1. 租户管理 - 私有化部署的租户管理
  2. 公告与通知管理
  3. 帮助文档管理
  4. 反馈与工单管理
  5. 系统健康检查
  6. 数据库备份与恢复
  7. 运营数据分析

📂 文档结构

ADMIN-运营管理端/
  ├── [AI对接] ADMIN快速上下文.md      # ⏳ 待创建
  ├── 00-项目概述/
  │   ├── 01-产品需求文档(PRD).md      # ⏳ 待创建
  │   ├── 02-功能清单15个模块.md   # ⏳ 待创建
  │   └── 03-权限体系设计.md           # ⏳ 待创建
  ├── 01-设计文档/
  │   ├── 01-技术架构设计.md           # ⏳ 待创建
  │   ├── 02-数据库设计.md             # ⏳ 待创建
  │   └── 05-权限体系实现.md           # ⏳ 待创建
  └── README.md                         # ✅ 当前文档

🏗️ 技术选型

  • 前端: React + Ant Design Pro
  • 后端: Node.js + Fastify
  • 数据库: PostgreSQL (admin_schema)

🚀 实施阶段

  • 阶段一1-2个月 P0功能
  • 阶段二1-2个月 P1功能
  • 阶段三1-2个月 P2功能

🌐 部署方式

  • 独立域名: https://admin.yizhengxun.com
  • 独立前端应用
  • 独立后端API

最后更新: 2025-11-06
维护人: 技术架构师