fa72beea6cf5194940db4a317c6b1dc784f484a6
Major Changes: - Implement Platform-Only architecture pattern (unified task management) - Add PostgresCacheAdapter for unified caching (platform_schema.app_cache) - Add PgBossQueue for job queue management (platform_schema.job) - Implement CheckpointService using job.data (generic for all modules) - Add intelligent threshold-based dual-mode processing (THRESHOLD=50) - Add task splitting mechanism (auto chunk size recommendation) - Refactor ASL screening service with smart mode selection - Refactor DC extraction service with smart mode selection - Register workers for ASL and DC modules Technical Highlights: - All task management data stored in platform_schema.job.data (JSONB) - Business tables remain clean (no task management fields) - CheckpointService is generic (shared by all modules) - Zero code duplication (DRY principle) - Follows 3-layer architecture principle - Zero additional cost (no Redis needed, save 8400 CNY/year) Code Statistics: - New code: ~1750 lines - Modified code: ~500 lines - Test code: ~1800 lines - Documentation: ~3000 lines Testing: - Unit tests: 8/8 passed - Integration tests: 2/2 passed - Architecture validation: passed - Linter errors: 0 Files: - Platform layer: PostgresCacheAdapter, PgBossQueue, CheckpointService, utils - ASL module: screeningService, screeningWorker - DC module: ExtractionController, extractionWorker - Tests: 11 test files - Docs: Updated 4 key documents Status: Phase 1-7 completed, Phase 8-9 pending
AI科研助手
专注于赋能临床及科研人员的智能化平台
📚 项目文档
📖 文档导航中心
- 📚 完整文档导航 ⭐ 查看所有设计文档和开发规范
🔗 快速链接
- 产品需求文档(PRD) - 了解产品需求
- 技术架构总览 - 了解技术方案
- 数据库设计文档 - 理解数据结构
- API设计规范 - 掌握接口定义
- 开发里程碑 - 查看开发进度
🛠️ 子项目文档
🏗️ 技术栈
前端
- React 18 + TypeScript
- Vite
- TailwindCSS
- Zustand
- LobeChat组件
后端
- Node.js + Fastify + TypeScript
- Prisma ORM
- PostgreSQL
- Redis
第三方服务
- Dify(RAG知识库)
- DeepSeek-V3(主力LLM)
- Qwen3(备用LLM)
✨ 核心功能
1. 智能问答系统
- 基于项目背景的上下文对话
- 支持@知识库引用
- 3种对话模式:RAG快速检索、全文阅读、批处理
2. 知识库管理
- 文档上传与管理(支持PDF/Word/Txt)
- 智能文本提取(Python微服务)
- RAG检索优化(top_k=15, chunk_size=1500)
3. 批处理模式
- 批量提取结构化信息(3-50个文档)
- 预设模板+自定义Prompt
- Excel导出
4. 稿件审查功能 ⭐ 新增
- 双维度智能评估:
- 稿约规范性评估(11个标准)
- 方法学评估(3个部分,20个检查点)
- 完整工作流程:
- Word文档上传(.doc/.docx)
- 实时进度展示
- 详细评估报告
- PDF导出+文本复制
- 多模型支持:DeepSeek-V3 / Qwen3-72B / Qwen-Long
- 独立导航入口:左侧菜单"稿件审查"
5. 12个智能体(规划中)
- ✅ 选题评价智能体(已完成)
- ⏳ 其他11个智能体(计划中)
🚀 快速开始
1. 启动基础服务
# 启动PostgreSQL和Redis
docker-compose up -d
2. 后端开发
cd backend
npm install
npm run dev
3. 前端开发
cd frontend
npm install
npm run dev
📦 目录结构
AIclinicalresearch/
├── frontend/ # 前端项目
├── backend/ # 后端项目
├── docs/ # 项目文档
├── docker-compose.yml # Docker配置
└── README.md # 本文件
🔑 环境变量
请参考 .env.example 文件配置环境变量。
📖 开发指南
请查看 开发里程碑 了解详细的开发计划。
📄 License
MIT
🔗 相关链接
- 📚 文档中心 - 完整的项目文档导航
- ⚙️ 后端项目 - 后端开发指南
- 🎨 前端项目 - 前端开发指南
- 🚀 快速启动指南 - 一步步启动项目
- 🐳 Dify部署方案 - Dify部署指南
当前开发阶段: 里程碑1 - Day 6(前端基础架构)
开发进度: 50% - 前后端基础架构已完成
Description
Languages
TypeScript
83%
Python
6.2%
JavaScript
3.8%
CSS
3.2%
R
2.5%
Other
1.2%