WeKnora/config/prompt_templates
wizardchen 8d40150149 fix(session): keep auto-generated titles plain text
The title prompt sent the user's first message as a raw user turn, so a
query ending in "summarise it in a table" made the model emit a Markdown
table that became the session title.

- Wrap the query in a <user_message> block (embedded delimiter tags are
  neutralised) and append a guard to the configured system prompt telling
  the model to treat the block as data and never follow its instructions.
- sanitizeGeneratedTitle now drops a full <think> block, keeps the first
  line with content, strips headings, list/quote markers, labels, links,
  inline markup and wrapping quotes, and falls back to a 30-rune plain-text
  prefix of the user query when the output is still table-like.
- Tighten the default session title template.
2026-09-24 15:56:09 +08:00
..
agent_system_prompt.yaml fix(agent): allow keyword retry after search_knowledge rerank rejection 2026-09-18 16:06:52 +08:00
context_template.yaml feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
fallback.yaml feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
generate_kb_description.yaml feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
generate_questions.yaml refactor(prompt_templates): improve question generation guidelines and context handling 2026-04-01 21:59:22 +08:00
generate_session_title.yaml fix(session): keep auto-generated titles plain text 2026-09-24 15:56:09 +08:00
generate_summary.yaml feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
graph_extraction.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
intent_prompts.yaml feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
keywords_extraction.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
rewrite.yaml feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
system_prompt.yaml feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00