prompt_config.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. rag_query:
  11. file: "prompts/RAG.md"
  12. description: "RAG检索问答prompt"
  13. encoding: "utf-8"
  14. variables: ["userMessage"]
  15. # 回答生成相关
  16. final_answer:
  17. file: "prompts/final_answer_template.md"
  18. description: "最终回答格式化prompt(纯文本)"
  19. encoding: "utf-8"
  20. variables: ["contextJSON", "historyContext", "userMessage"]
  21. json_answer:
  22. file: "prompts/JSON.MD"
  23. description: "JSON格式回答prompt"
  24. encoding: "utf-8"
  25. variables: ["contextJSON", "userMessage", "historyContext", "onlineSearchContent"]
  26. # 特定功能prompt
  27. document_writing:
  28. file: "prompts/document_writing_template.md"
  29. description: "公文写作prompt"
  30. encoding: "utf-8"
  31. variables: ["contextJSON", "userMessage"]
  32. ppt_outline:
  33. file: "prompts/ppt_outline_template.md"
  34. description: "PPT大纲生成prompt"
  35. encoding: "utf-8"
  36. variables: ["contextJSON", "userMessage"]
  37. streaming_output:
  38. file: "prompts/liushi.md"
  39. description: "流式输出prompt"
  40. encoding: "utf-8"
  41. variables: ["userMessage"]
  42. three_suggestions:
  43. file: "prompts/3jianyi.md"
  44. description: "三个建议prompt"
  45. encoding: "utf-8"
  46. variables: ["userMessage"]
  47. guess_questions:
  48. file: "prompts/guess_questions_template.md"
  49. description: "猜你想问prompt"
  50. encoding: "utf-8"
  51. variables: ["currentContent"]
  52. image_recognition_streaming:
  53. file: "prompts/yitushibiefeiliu.md"
  54. description: "以图识别(流式)prompt"
  55. encoding: "utf-8"
  56. variables: []
  57. # 默认配置
  58. defaults:
  59. encoding: "utf-8"
  60. cache_enabled: true
  61. auto_reload: false # 生产环境建议false,开发环境可以true