From a530a3a1701c9a03c0a84e0d8f858b91ae5d7bdd Mon Sep 17 00:00:00 2001 From: euvre <93761161+euvre@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:39:36 -0700 Subject: [PATCH] fix: clean up wiki blueprint default instruction text (#17893) --- api/db/init_data/compilation_templates/wiki.yaml | 2 +- api/db/init_data/compilation_templates/wiki/general.yaml | 2 +- rag/advanced_rag/knowlege_compile/wiki.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/db/init_data/compilation_templates/wiki.yaml b/api/db/init_data/compilation_templates/wiki.yaml index 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.yaml index 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.py index 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)" )