RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(infinity): parent_kwd incorrectly split as keyword list causing orphaned clusters (#17475)
qinling0210ad2102c1a81e
diff --git a/rag/utils/infinity_conn.py b/rag/utils/infinity_conn.pyindex f69324e07f..e2980f19e2 100644--- a/rag/utils/infinity_conn.py+++ b/rag/utils/infinity_conn.py@@ -72,11 +72,11 @@ class InfinityConnection(InfinityConnectionBase):@staticmethoddef field_keyword(field_name: str):- # Treat "*_kwd" tag-like columns as keyword lists except knowledge_graph_kwd; source_id is also keyword-like.+ # Treat "*_kwd" tag-like columns as keyword lists except for the fields in the exclusion list; source_id is also keyword-like.# source_doc_ids / source_chunk_ids are multi-valued provenance lists (artifact/wiki rows) and must be# stored/read/updated as keyword lists so the delete-time ref-count (remove one id, drop row when empty) works.if field_name in ("source_id", "source_doc_ids", "source_chunk_ids") or (- field_name.endswith("_kwd") and field_name not in ["knowledge_graph_kwd", "docnm_kwd", "important_kwd", "question_kwd"]+ field_name.endswith("_kwd") and field_name not in ["knowledge_graph_kwd", "docnm_kwd", "important_kwd", "question_kwd", "parent_kwd"]):return Truereturn False