feat(admin): Implement Prompt knowledge base integration
Features: - PromptService enhancement: enhanceWithKnowledge(), loadFullKnowledge(), ragSearch() - FULL mode: Load entire knowledge base content - RAG mode: Vector search based on user query - Knowledge config API: PUT /:code/knowledge-config - Test render with knowledge injection support - Frontend: Knowledge config UI in Prompt editor Bug fixes: - Fix knowledge config not returned in getPromptDetail - Fix publish button 400 error (empty request body) - Fix cache not invalidated after publish - Add detailed logging for debugging Documentation: - Add development record 2026-01-28 - Update ADMIN module status to Phase 4.6 - Update system status document to v4.5 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# ADMIN-运营管理端 - 模块当前状态与开发指南
|
||||
|
||||
> **最后更新:** 2026-01-27
|
||||
> **状态:** ✅ Phase 4.5 系统知识库管理功能完成!
|
||||
> **版本:** v0.7 (Alpha)
|
||||
> **最后更新:** 2026-01-28
|
||||
> **状态:** ✅ Phase 4.6 Prompt 知识库集成功能完成!
|
||||
> **版本:** v0.8 (Alpha)
|
||||
|
||||
---
|
||||
|
||||
@@ -123,6 +123,18 @@
|
||||
- [x] 前端:主从页面模式(Master-Detail UX)
|
||||
- [x] 功能:文档上传(单个/批量)、下载(保留原始文件名)、删除
|
||||
|
||||
**Phase 4.6:Prompt 知识库集成** ✅ 已完成(2026-01-28)🎉
|
||||
- [x] 后端:PromptService 知识库增强(`enhanceWithKnowledge()`)
|
||||
- [x] 后端:FULL 模式全量加载(`loadFullKnowledge()`)
|
||||
- [x] 后端:RAG 模式向量检索(`ragSearch()`)
|
||||
- [x] 后端:知识库配置保存 API(`PUT /:code/knowledge-config`)
|
||||
- [x] 后端:测试渲染支持知识库注入(`getEnhancedVariables()`)
|
||||
- [x] 前端:知识库配置 UI(开关、选择器、参数配置)
|
||||
- [x] 前端:测试渲染预览知识库效果
|
||||
- [x] 修复:知识库配置保存/加载问题
|
||||
- [x] 修复:发布按钮 400 错误
|
||||
- [x] 修复:发布后缓存未清除问题
|
||||
|
||||
### ⏳ 待开发(按优先级)
|
||||
|
||||
**P2 - 用户管理增强(可选)**
|
||||
|
||||
Reference in New Issue
Block a user