From 5352bdf4dad03258793b76a3fbb1e06ebd030d6a Mon Sep 17 00:00:00 2001 From: WhiteBear <2113246791@qq.com> Date: Fri, 9 May 2025 10:17:09 +0800 Subject: [PATCH] Error storing tag in Redis (#7541) ### What problem does this PR solve? The parameter positions were incorrect and have been corrected to use keyword argument passing ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/app/tag.py b/rag/app/tag.py index 2c17fd7b9..179d72e24 100644 --- a/rag/app/tag.py +++ b/rag/app/tag.py @@ -134,7 +134,7 @@ def label_question(question, kbs): all_tags = get_tags_from_cache(tag_kb_ids) if not all_tags: all_tags = settings.retrievaler.all_tags_in_portion(kb.tenant_id, tag_kb_ids) - set_tags_to_cache(all_tags, tag_kb_ids) + set_tags_to_cache(tags=all_tags, kb_ids=tag_kb_ids) else: all_tags = json.loads(all_tags) tag_kbs = KnowledgebaseService.get_by_ids(tag_kb_ids)