Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix:local_es_tag (#7534)

hfrt456332e6ffbd48d
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index cf4028f1b8..14ce6fc533 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)