feat: Replace模式清理未使用标签

This commit is contained in:
wizardchen
2026-01-05 14:55:03 +08:00
committed by lyingbug
parent 20e7b36202
commit bebeb2a643
3 changed files with 22 additions and 0 deletions
+2
View File
@@ -54,4 +54,6 @@ type KnowledgeTagRepository interface {
tenantID uint64,
kbID string,
) (knowledgeCount int64, chunkCount int64, err error)
// DeleteUnusedTags deletes tags that are not referenced by any knowledge or chunk.
DeleteUnusedTags(ctx context.Context, tenantID uint64, kbID string) (int64, error)
}