Skip to content

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

fix(infinity): restore deprecated knowledge-compilation columns in the chunk mapping (#20646)

qinling0210ca22c25245fb
diff --git a/conf/infinity_mapping.json b/conf/infinity_mapping.json
index 424a4ace26..9fdbd269f7 100644
--- a/conf/infinity_mapping.json
+++ b/conf/infinity_mapping.json
@@ -26,6 +26,7 @@
"rank_int": {"type": "integer", "default": 0},
"rank_flt": {"type": "float", "default": 0},
"available_int": {"type": "integer", "default": 1, "index_type": {"type": "secondary", "cardinality": "low"}},
+ "knowledge_graph_kwd": {"type": "varchar", "default": "", "deprecated": "superseded by type_kwd; retained only so pre-refactor rows stay readable"},
"entities_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
"pagerank_fea": {"type": "integer", "default": 0},
"tag_feas": {"type": "varchar", "default": "", "analyzer": "rankfeatures"},
@@ -50,6 +51,7 @@
"source_chunk_ids": {"type": "json", "default": "[]", "index_type": {"type": "secondary", "cardinality": "low"}},
"source_doc_ids": {"type": "json", "default": "[]", "index_type": {"type": "secondary", "cardinality": "low"}},
"compilation_template_ids": {"type": "json", "default": "[]", "index_type": {"type": "secondary", "cardinality": "low"}},
+ "compilation_template_kind_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#", "deprecated": "superseded by compile_kwd; retained only so pre-refactor rows stay readable"},
"chunk_hash_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
"input_hash_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
"wiki_slug_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
@@ -64,6 +66,7 @@
"topic_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
"plan_group_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
"generation_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#"},
+ "page_type_kwd": {"type": "varchar", "default": "", "analyzer": "whitespace-#", "deprecated": "superseded by entity_type_kwd; retained only so pre-refactor rows stay readable"},
"entity_names_kwd": {"type": "json", "default": "[]", "index_type": {"type": "secondary", "cardinality": "low"}},
"entity_names": {"type": "json", "default": "[]", "enabled": false},
"outlinks_kwd": {"type": "json", "default": "[]", "index_type": {"type": "secondary", "cardinality": "low"}},