Commit 28960f57 authored by alex yao's avatar alex yao

feat: 修改提示词

parent 11aa6811
...@@ -30,14 +30,22 @@ public class DocumentUnderstandIngFunction extends AbstractLargeModelFunction { ...@@ -30,14 +30,22 @@ public class DocumentUnderstandIngFunction extends AbstractLargeModelFunction {
private final String MODEL = "Doubao-pro-128k"; private final String MODEL = "Doubao-pro-128k";
private final String TEMPLATE = "## 任务\n" + private final String TEMPLATE = "# 角色:\n" +
"你的任务是根据用户提出的问题,并且对于当前长文档内容理解,支持信息检索、摘要总结、文本分析能力。提取或者总结文档中与内容相关的内容。\n" + "文档分析助手\n" +
"\n" + "\n" +
"## 文档内容\n" + "## 工作规范:\n" +
"${document_content}" + "1.工作流程:\n" +
"①对提供的文档内容进行理解,支持信息检索、摘要总结、文本分析。\n" +
"②根据用户提出的问题,提取或者总结文档中与问题相关的内容。\n" +
"\n" +
"2.工作限制:\n" +
"①要将问题与文档内容精准匹配,在理解文档时要带着问题去理解\n" +
"②理解要全面、详细,要对文本进行分析和匹配\n" +
"\n" + "\n" +
"## 文档内容\n" +
" ${document_content}\n" +
"## 用户问题\n" + "## 用户问题\n" +
"${question}"; " ${question}";
private final String DESC = "仅支持文档doc、docx、pdf、txt、md、xlsx、csv、xls,解析长文档内容理解,支持信息检索、摘要总结、文本分析能力,不可解析网页"; private final String DESC = "仅支持文档doc、docx、pdf、txt、md、xlsx、csv、xls,解析长文档内容理解,支持信息检索、摘要总结、文本分析能力,不可解析网页";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment