feat: 改进未分类标签的处理逻辑

将未分类标签从空字符串改为特殊标识符__untagged__,统一前后端处理逻辑
This commit is contained in:
wizardchen
2026-01-04 19:35:12 +08:00
committed by lyingbug
parent 0fc56920d3
commit 4ffda00a86
5 changed files with 96 additions and 35 deletions
+6
View File
@@ -48,4 +48,10 @@ type KnowledgeTagRepository interface {
kbID string,
tagID string,
) (knowledgeCount int64, chunkCount int64, err error)
// CountUntaggedReferences returns number of knowledges and chunks without a tag.
CountUntaggedReferences(
ctx context.Context,
tenantID uint64,
kbID string,
) (knowledgeCount int64, chunkCount int64, err error)
}