feat: implement chat history and retrieval settings
- Added new API endpoints for managing chat history configuration and retrieval settings, allowing tenants to enable message indexing and configure search parameters. - Introduced new Vue components for ChatHistorySettings and RetrievalSettings, providing a user-friendly interface for managing these configurations. - Updated localization files to include new settings descriptions and labels in multiple languages. - Enhanced the KnowledgeSearch view to support searching across both knowledge bases and chat history, improving the overall search functionality. These changes significantly enhance the application's capabilities in managing and retrieving chat history, contributing to a more robust user experience.
This commit is contained in:
@@ -276,6 +276,10 @@ func RegisterMessageRoutes(r *gin.RouterGroup, handler *handler.MessageHandler)
|
||||
// 消息路由组
|
||||
messages := r.Group("/messages")
|
||||
{
|
||||
// 搜索历史对话(关键词 + 向量混合搜索)
|
||||
messages.POST("/search", handler.SearchMessages)
|
||||
// 获取聊天历史知识库的统计信息
|
||||
messages.GET("/chat-history-stats", handler.GetChatHistoryKBStats)
|
||||
// 加载更早的消息,用于向上滚动加载
|
||||
messages.GET("/:session_id/load", handler.LoadMessages)
|
||||
// 删除消息
|
||||
|
||||
Reference in New Issue
Block a user