feat: Add file type filtering to knowledge base search functionality, enhancing user experience and API capabilities

This commit is contained in:
wizardchen
2025-12-04 00:20:22 +08:00
parent bee699f5bf
commit e0d9be9405
12 changed files with 103 additions and 14 deletions
@@ -331,7 +331,7 @@ func (s *agentService) getKnowledgeBaseInfos(ctx context.Context, kbIDs []string
pageResult, err := s.knowledgeService.ListPagedKnowledgeByKnowledgeBaseID(ctx, kbID, &types.Pagination{
Page: 1,
PageSize: 10,
}, "", "")
}, "", "", "")
if err == nil && pageResult != nil {
docCount = int(pageResult.Total)