mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-27 02:42:00 +08:00
Bugfix: fix tag show (#14980)
### What problem does this PR solve? Bugfix: fix tag show ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -598,9 +598,8 @@ def aggregate_tags(dataset_ids: list[str], tenant_id: str):
|
||||
|
||||
merged = {}
|
||||
for kb_tenant_id, kb_ids in dataset_ids_by_tenant.items():
|
||||
for bucket in settings.retriever.all_tags(kb_tenant_id, kb_ids):
|
||||
tag = bucket["value"]
|
||||
merged[tag] = merged.get(tag, 0) + bucket["count"]
|
||||
for tag, count in settings.retriever.all_tags(kb_tenant_id, kb_ids):
|
||||
merged[tag] = merged.get(tag, 0) + count
|
||||
|
||||
return True, [{"value": tag, "count": count} for tag, count in merged.items()]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user