feat: Remove RebuildKnowledgeBaseIndex and associated handler from knowledge service

- Deleted the RebuildKnowledgeBaseIndex function from the knowledge service, which was responsible for reprocessing all documents in a knowledge base.
- Removed the RebuildIndex handler from the KnowledgeBaseHandler, eliminating the endpoint that triggered the rebuild process.
- Updated the router to remove the route for rebuilding the index, streamlining the knowledge base management functionality.
This commit is contained in:
wizardchen
2026-04-22 20:24:12 +08:00
parent 31b22cf92c
commit b3484592e7
3 changed files with 1 additions and 76 deletions
-2
View File
@@ -278,8 +278,6 @@ func RegisterKnowledgeBaseRoutes(r *gin.RouterGroup, handler *handler.KnowledgeB
kb.GET("/copy/progress/:task_id", handler.GetKBCloneProgress)
// 获取可移动目标知识库列表
kb.GET("/:id/move-targets", handler.ListMoveTargets)
// 重建索引(当索引策略变更后,对已有文档重新处理)
kb.POST("/:id/rebuild-index", handler.RebuildIndex)
}
}