feat: 增强FAQ搜索功能,支持指定搜索字段(标准问题/相似问法/答案)

This commit is contained in:
wizardchen
2025-12-24 13:11:54 +08:00
parent e45b82e9be
commit 0bbd1450cc
10 changed files with 36 additions and 14 deletions
@@ -337,7 +337,7 @@ func (s *agentService) getKnowledgeBaseInfos(ctx context.Context, kbIDs []string
pageResult, err := s.knowledgeService.ListFAQEntries(ctx, kbID, &types.Pagination{
Page: 1,
PageSize: 10,
}, "", "", "")
}, "", "", "", "")
if err == nil && pageResult != nil {
docCount = int(pageResult.Total)
if entries, ok := pageResult.Data.([]*types.FAQEntry); ok {