diff --git a/rag/utils/infinity_conn.py b/rag/utils/infinity_conn.py index f69324e07f..e2980f19e2 100644 --- a/rag/utils/infinity_conn.py +++ b/rag/utils/infinity_conn.py @@ -72,11 +72,11 @@ class InfinityConnection(InfinityConnectionBase): @staticmethod def 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 True return False