diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py index cf4028f1b..14ce6fc53 100644 --- a/rag/svr/task_executor.py +++ b/rag/svr/task_executor.py @@ -368,7 +368,7 @@ async def build_chunks(task, progress_callback): docs_to_tag = [] for d in docs: - if settings.retrievaler.tag_content(tenant_id, kb_ids, d, all_tags, topn_tags=topn_tags, S=S): + if settings.retrievaler.tag_content(tenant_id, kb_ids, d, all_tags, topn_tags=topn_tags, S=S) and len(d[TAG_FLD]) > 0: examples.append({"content": d["content_with_weight"], TAG_FLD: d[TAG_FLD]}) else: docs_to_tag.append(d)