fix(agent): exclude processing docs from prompt
This commit is contained in:
@@ -687,7 +687,9 @@ func (s *agentService) getKnowledgeBaseInfos(ctx context.Context, kbIDs []string
|
||||
pageResult, err := s.knowledgeService.ListPagedKnowledgeByKnowledgeBaseID(ctx, kbID, &types.Pagination{
|
||||
Page: 1,
|
||||
PageSize: 10,
|
||||
}, types.KnowledgeListFilter{})
|
||||
}, types.KnowledgeListFilter{
|
||||
ParseStatus: types.ParseStatusCompleted,
|
||||
})
|
||||
|
||||
if err == nil && pageResult != nil {
|
||||
docCount = int(pageResult.Total)
|
||||
|
||||
Reference in New Issue
Block a user