Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
c674ee5d
Commit
c674ee5d
authored
Apr 10, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改提示词
parent
28960f57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
DocumentUnderstandIngFunction.java
...document_understanding/DocumentUnderstandIngFunction.java
+3
-7
No files found.
src/main/java/cn/com/poc/thirdparty/resource/demand/ai/function/document_understanding/DocumentUnderstandIngFunction.java
View file @
c674ee5d
...
@@ -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,解析长文档内容理解,支持信息检索、摘要总结、文本分析能力,不可解析网页"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment