Commit c674ee5d authored by alex yao's avatar alex yao

feat: 修改提示词

parent 28960f57
...@@ -30,22 +30,18 @@ public class DocumentUnderstandIngFunction extends AbstractLargeModelFunction { ...@@ -30,22 +30,18 @@ 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" +
"1.工作流程:\n" + "1.工作流程:\n" +
"①对提供的文档内容进行理解,支持信息检索、摘要总结、文本分析。\n" + "①对提供的文档内容进行理解,支持信息检索、摘要总结、文本分析。\n" +
"②根据用户提出的问题,提取或者总结文档中与问题相关的内容。\n" + "②根据用户提出的问题,提取或者总结文档中与问题相关的内容。\n" +
"\n" + "\n" +
"2.工作限制:\n" + "2.工作限制:\n" +
"①要将问题与文档内容精准匹配,在理解文档时要带着问题去理解\n" + "①要将问题与文档内容精准匹配,在理解文档时要带着问题去理解\n" +
"②理解要全面、详细,要对文本进行分析和匹配\n" +
"\n" + "\n" +
"## 文档内容\n" + "## 文档内容\n" +
" ${document_content}\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