feat: 百科rag

This commit is contained in:
Blizzard
2026-04-23 11:15:58 +08:00
parent b2e6e511cd
commit e9c93d4029
8 changed files with 157 additions and 3 deletions
+5 -2
View File
@@ -8,8 +8,11 @@ func (s *AiChatRouter) InitAiChatRouter(Router *gin.RouterGroup) (R gin.IRoutes)
aiChatRouter := Router.Group("plant/chat")
aiChatApi := aiChatApi
{
aiChatRouter.GET("stream", aiChatApi.ChatStreamPlant) // SSE 对话流
aiChatRouter.POST("sync", aiChatApi.SyncWikiToQdrant) // 后台知识库同步
aiChatRouter.GET("stream", aiChatApi.ChatStreamPlant) // SSE 对话流
aiChatRouter.POST("sync", aiChatApi.SyncWikiToQdrant) // 后台知识库同步
aiChatRouter.GET("history", aiChatApi.GetChatHistory) // 问答历史列表
aiChatRouter.POST("history/delete", aiChatApi.DeleteChatHistory) // 删除单条
aiChatRouter.POST("history/clear", aiChatApi.ClearChatHistory) // 清空历史
}
return aiChatRouter
}