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: clean up wiki blueprint default instruction text (#17893)
euvrea530a3a1701c
diff --git a/api/db/init_data/compilation_templates/wiki.yaml b/api/db/init_data/compilation_templates/wiki.yamlindex ffcf91e9e1..343092ca03 100644--- a/api/db/init_data/compilation_templates/wiki.yaml+++ b/api/db/init_data/compilation_templates/wiki.yaml@@ -9,7 +9,7 @@ config:- 2. Sections with H2 headings, each starting with prose before sub-bullets.- 3. Bold key terms on first use; link them with [[ ]] wikilinks.- 4. Examples or implications where the source provides them.- - 5. ## See also section at the end with wikilinks to highly related pages(less than 12).\n+ - 5. End with a "## See also" section listing wikilinks to highly related pages (less than 12).example: |- Page structure could be as following: (Not provided)entity:diff --git a/api/db/init_data/compilation_templates/wiki/general.yaml b/api/db/init_data/compilation_templates/wiki/general.yamlindex fe1cd0692d..68a3df4ade 100644--- a/api/db/init_data/compilation_templates/wiki/general.yaml+++ b/api/db/init_data/compilation_templates/wiki/general.yaml@@ -5,6 +5,6 @@ instruction: |- 2. Sections with H2 headings, each starting with prose before sub-bullets.- 3. Bold key terms on first use; link them with [[ ]] wikilinks.- 4. Examples or implications where the source provides them.- - 5. ## See also section at the end with wikilinks to highly related pages(less than 12).\n+ - 5. End with a "## See also" section listing wikilinks to highly related pages (less than 12).example: |- (Not provided)diff --git a/rag/advanced_rag/knowlege_compile/wiki.py b/rag/advanced_rag/knowlege_compile/wiki.pyindex acff15522d..39dc307437 100644--- a/rag/advanced_rag/knowlege_compile/wiki.py+++ b/rag/advanced_rag/knowlege_compile/wiki.py@@ -2611,7 +2611,7 @@ WIKI_TEMPLATE_EXAMPLE = (" Put every heading on its own line and separate every paragraph with a blank line.\n""3. Bold key terms on first use; link them with [[ ]] wikilinks.\n""4. Examples or implications where the source provides them.\n"- "5. ## See also section at the end with wikilinks to highly related pages(less than 12).\n\n"+ '5. End with a "## See also" section listing wikilinks to highly related pages (less than 12).\n\n'"Page structure could be as following:\n(Not provided)")