feat: 百科知识库存入向量

This commit is contained in:
Blizzard
2026-04-21 17:32:26 +08:00
parent ae0020aa71
commit b2e6e511cd
21 changed files with 802 additions and 35 deletions
+15
View File
@@ -0,0 +1,15 @@
package plant
import "github.com/gin-gonic/gin"
type AiChatRouter struct{}
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) // 后台知识库同步
}
return aiChatRouter
}