WeKnora/config
wizardchen d812770806 fix: inject KB document listing on fallback for broad queries (#959)
When users ask broad queries like "请整理知识库中的数据" in RAG mode,
vector/keyword search returns nothing because the query has no specific
content to match. The user needs to see what documents exist, not search
results.

- Add buildKBDocumentListing() to fetch document titles/filenames from
  the knowledge base and inject them into the fallback prompt via
  {{kb_documents}} placeholder
- Update fallback prompt templates (model_fallback, default_fallback_prompt)
  to include document listing context so the LLM can guide users
- Improve rewrite prompt: tighten summarize vs kb_search classification,
  expand kb_search to cover browse/organize/list operations, add examples

Closes #959
2026-04-28 23:31:04 +08:00
..
prompt_templates fix: inject KB document listing on fallback for broad queries (#959) 2026-04-28 23:31:04 +08:00
agent_type_presets.yaml feat: Enhance agent tool compatibility and knowledge base filtering 2026-04-23 17:28:00 +08:00
builtin_agents.yaml feat: Remove deprecated tools from built-in agents configuration 2026-04-22 21:18:31 +08:00
config.yaml feat(summary): enhance document summarization capabilities and UI 2026-04-02 18:34:39 +08:00