prompt_config.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Prompt 配置文件
  2. # 定义所有 prompt 模板的路径和元数据
  3. prompts:
  4. # 意图识别相关
  5. intent_recognition:
  6. file: "prompts/yitushibie_template_lite.md"
  7. description: "用户意图识别prompt(精简版,适配小模型)"
  8. encoding: "utf-8"
  9. variables: ["userMessage"]
  10. module_dispatch:
  11. file: "prompts/module_dispatch_template.md"
  12. description: "AI 助手顶层模块分发 prompt"
  13. encoding: "utf-8"
  14. variables: ["userMessage"]
  15. rag_query:
  16. file: "prompts/RAG.md"
  17. description: "RAG检索问答prompt"
  18. encoding: "utf-8"
  19. variables: ["userMessage"]
  20. # 回答生成相关
  21. final_answer:
  22. file: "prompts/final_answer_template.md"
  23. description: "最终回答格式化prompt(纯文本)"
  24. encoding: "utf-8"
  25. variables: ["contextJSON", "historyContext", "userMessage"]
  26. json_answer:
  27. file: "prompts/JSON.MD"
  28. description: "JSON格式回答prompt"
  29. encoding: "utf-8"
  30. variables: ["contextJSON", "userMessage", "historyContext", "onlineSearchContent"]
  31. # 特定功能prompt
  32. document_writing:
  33. file: "prompts/document_writing_template.md"
  34. description: "公文写作prompt"
  35. encoding: "utf-8"
  36. variables: ["contextJSON", "userMessage"]
  37. ppt_outline:
  38. file: "prompts/ppt_outline_template.md"
  39. description: "PPT大纲生成prompt"
  40. encoding: "utf-8"
  41. variables: ["contextJSON", "userMessage"]
  42. streaming_output:
  43. file: "prompts/liushi.md"
  44. description: "流式输出prompt"
  45. encoding: "utf-8"
  46. variables: ["userMessage"]
  47. three_suggestions:
  48. file: "prompts/3jianyi.md"
  49. description: "三个建议prompt"
  50. encoding: "utf-8"
  51. variables: ["userMessage"]
  52. guess_questions:
  53. file: "prompts/guess_questions_template.md"
  54. description: "猜你想问prompt"
  55. encoding: "utf-8"
  56. variables: ["currentContent"]
  57. image_recognition_streaming:
  58. file: "prompts/yitushibiefeiliu.md"
  59. description: "以图识别(流式)prompt"
  60. encoding: "utf-8"
  61. variables: []
  62. thinking_summary:
  63. file: "prompts/thinking_summary_prompt.md"
  64. description: "思考要点二次总结prompt(方案三)"
  65. encoding: "utf-8"
  66. variables: ["userMessage", "thinkingText", "finalAnswer", "maxPoints"]
  67. # 默认配置
  68. defaults:
  69. encoding: "utf-8"
  70. cache_enabled: true
  71. auto_reload: false # 生产环境建议false,开发环境可以true