feat: Implement manual knowledge editing and enhance knowledge base features
- Added functionality for manual knowledge entry, allowing users to create and edit Markdown content directly in the browser. - Introduced new API endpoints for creating and updating manual knowledge entries. - Enhanced UI components to support the new manual knowledge editor, including integration with existing knowledge base features. - Updated knowledge retrieval logic to accommodate manual entries, ensuring seamless user experience across knowledge types. - Improved agent configuration to support custom system prompts, enhancing flexibility in agent responses.
This commit is contained in:
@@ -121,6 +121,8 @@ func RegisterKnowledgeRoutes(r *gin.RouterGroup, handler *handler.KnowledgeHandl
|
||||
kb.POST("/file", handler.CreateKnowledgeFromFile)
|
||||
// 从URL创建知识
|
||||
kb.POST("/url", handler.CreateKnowledgeFromURL)
|
||||
// 手工 Markdown 录入
|
||||
kb.POST("/manual", handler.CreateManualKnowledge)
|
||||
// 获取知识库下的知识列表
|
||||
kb.GET("", handler.ListKnowledge)
|
||||
}
|
||||
@@ -136,6 +138,8 @@ func RegisterKnowledgeRoutes(r *gin.RouterGroup, handler *handler.KnowledgeHandl
|
||||
k.DELETE("/:id", handler.DeleteKnowledge)
|
||||
// 更新知识
|
||||
k.PUT("/:id", handler.UpdateKnowledge)
|
||||
// 更新手工 Markdown 知识
|
||||
k.PUT("/manual/:id", handler.UpdateManualKnowledge)
|
||||
// 获取知识文件
|
||||
k.GET("/:id/download", handler.DownloadKnowledgeFile)
|
||||
// 更新图像分块信息
|
||||
|
||||
Reference in New Issue
Block a user