chore: finalize backend feature scope

This commit is contained in:
刘金宝
2026-06-11 16:19:07 +08:00
parent d855ecab82
commit ec515d5453
43 changed files with 680 additions and 712 deletions
+8 -8
View File
@@ -45,7 +45,7 @@
| 当前状态 | 已实现,正式接口为 SSE |
| 相关接口 | `POST /api/v1/sessions/{session_id}/hints/stream` |
| 相关代码 | `app/agents/hint_agent.py``app/services/session_service.py` |
| 相关提示词 | `app/prompts/hint/novice_case_hint.md` |
| 相关提示词 | `app/prompts/hint/practice_case_hint.md` |
| 后续优化 | 增加科室主任风格模板、提示质量评估和可配置提示强度 |
## 5. 检查/检验模块
@@ -88,7 +88,7 @@
|---|---|
| 主要作用 | 生成和下载 AI 评价 PDF |
| 当前状态 | 已实现 |
| 相关接口 | `POST /api/v1/evaluations/{evaluation_id}/export-pdf``GET /api/v1/evaluations/{evaluation_id}/download-pdf` |
| 相关接口 | `GET /api/v1/evaluations/{evaluation_id}/download-pdf` |
| 相关代码 | `app/services/pdf_export_service.py` |
| 相关表 | `training_record` |
| 文件目录 | `storage/reports` |
@@ -122,19 +122,19 @@
| 项 | 内容 |
|---|---|
| 主要作用 | 普通用户提出医学学习问题,后端优先检索机构知识库并流式回答 |
| 当前状态 | 已实现式流式接口;无知识库时自动降级为通用 LLM 回答 |
| 相关接口 | `POST /api/v1/learning-assistant/chat/stream` |
| 相关代码 | `app/api/learning_assistant.py``app/services/learning_assistant_service.py``app/agents/learning_assistant_agent.py` |
| 相关表 | `kb_spaces``kb_chunks``kb_query_logs` |
| 当前状态 | 已实现新建短期会话和会话式流式接口;无知识库时自动降级为通用 LLM 回答 |
| 相关接口 | `POST /api/v1/learning-assistant/sessions``POST /api/v1/learning-assistant/sessions/{assistant_session_id}/chat/stream` |
| 相关代码 | `app/api/learning_assistant.py``app/services/learning_assistant_service.py``app/services/learning_assistant_session_store.py``app/agents/learning_assistant_agent.py` |
| 相关表 | `kb_spaces``kb_chunks``kb_query_logs`;学习助手短期会话保存在 Redis |
| 外部依赖 | LLM、Embedding、Milvus |
| 后续优化 | 查询改写、rerank、多轮记忆、来源引用格式优化、成本统计 |
| 后续优化 | 查询改写、rerank、长期学习记录、来源引用格式优化、成本统计 |
## 12. 后台知识库预留模块
| 项 | 内容 |
|---|---|
| 主要作用 | 内容管理员上传 PDF,构建机构知识库 |
| 当前状态 | 接口和数据结构已预留,生产级大规模入库仍需压测 |
| 当前状态 | 接口和数据结构保留,当前前端不展示入口,生产级大规模入库仍需压测 |
| 相关接口 | `POST /api/v1/knowledge-admin/documents/upload`、文档列表、文档详情 |
| 相关代码 | `app/api/knowledge_admin.py``app/services/document_ingestion_service.py``app/integrations/*` |
| 相关表 | `kb_spaces``kb_documents``kb_chunks``kb_ingestion_tasks` |