Summary: - Fix Prompt list API response schema missing activeVersion and draftVersion fields - Fastify was filtering out undefined schema fields, causing version columns to show empty - Add detailed diagnostic logging for Prompt debug mode troubleshooting - Verify debug mode works correctly (DRAFT version is used when debug enabled) Changes: - backend/src/common/prompt/prompt.routes.ts: Add activeVersion and draftVersion to response schema - backend/src/common/prompt/prompt.service.ts: Add diagnostic logs for setDebugMode and get methods - PKB module: Various authentication and document handling fixes from previous session Tested: Debug mode verified working - v2 DRAFT version correctly loaded when debug enabled
AIA - AI智能问答
模块代号: AIA (AI Intelligent Answer)
开发状态: ✅ 已完成
商业价值: ⭐⭐⭐⭐
独立性: ⭐⭐⭐
📋 模块概述
AI智能问答模块提供10+个专业AI智能体,覆盖科研关键节点。
核心价值: 差异化AI能力,覆盖科研全流程
🎯 核心功能
已完成功能
- ✅ 12个智能体 - YAML配置框架
- ✅ 多轮对话 - 上下文管理、历史记录
- ✅ 流式输出 - SSE打字机效果
- ✅ 模型切换 - DeepSeek、Qwen3、Qwen-Long
- ✅ @知识库问答 - RAG增强
主要智能体
- 选题评价智能体(四维度评价)
- PICO梳理智能体
- 样本量计算智能体
- 研究方案制定智能体
- 文章润色与翻译智能体
📂 文档结构
AIA-AI智能问答/
├── [AI对接] AIA快速上下文.md # ⏳ 待创建
├── 00-项目概述/
├── 01-设计文档/
└── README.md # ✅ 当前文档
🔗 依赖的通用能力
- LLM网关 - 模型调用和切换
- RAG引擎 - @知识库问答
最后更新: 2025-11-06
维护人: 技术架构师