feat: Enhance knowledge base functionality by adding document search capability and updating related API and UI components

This commit is contained in:
wizardchen
2025-12-04 00:13:34 +08:00
parent dafb95d46a
commit bee699f5bf
12 changed files with 79 additions and 11 deletions
+2 -2
View File
@@ -699,10 +699,10 @@ func (s *knowledgeService) ListKnowledgeByKnowledgeBaseID(ctx context.Context,
// ListPagedKnowledgeByKnowledgeBaseID returns paginated knowledge entries in a knowledge base
func (s *knowledgeService) ListPagedKnowledgeByKnowledgeBaseID(ctx context.Context,
kbID string, page *types.Pagination, tagID string,
kbID string, page *types.Pagination, tagID string, keyword string,
) (*types.PageResult, error) {
knowledges, total, err := s.repo.ListPagedKnowledgeByKnowledgeBaseID(ctx,
ctx.Value(types.TenantIDContextKey).(uint64), kbID, page, tagID)
ctx.Value(types.TenantIDContextKey).(uint64), kbID, page, tagID, keyword)
if err != nil {
return nil, err
}