refactor(knowledge): increase page size for tag retrieval in buildTagMap function

- Updated the page size from 100 to 1000 in the buildTagMap function to enhance performance and efficiency when retrieving tags from the knowledge base.
This commit is contained in:
wizardchen
2026-03-23 19:54:26 +08:00
committed by lyingbug
parent a6c38123b6
commit 68dd6aa778
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5901,7 +5901,7 @@ func (s *knowledgeService) ExportFAQEntries(ctx context.Context, kbID string) ([
// buildTagMap builds a map from tag_id to tag_name for the given knowledge base.
func (s *knowledgeService) buildTagMap(ctx context.Context, tenantID uint64, kbID string) (map[string]string, error) {
const pageSize = 100
const pageSize = 1000
tagMap := make(map[string]string)
for pageNum := 1; ; pageNum++ {