Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sl-ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhouwei
sl-ai
Commits
d1bd4b38
Commit
d1bd4b38
authored
3 weeks ago
by
zhouwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增紧急通知处理接口
parent
95b8c64a
1 merge request
!10
Dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AIServiceImpl.java
...a/com/nanyan/securitylink/service/impl/AIServiceImpl.java
+4
-4
No files found.
src/main/java/com/nanyan/securitylink/service/impl/AIServiceImpl.java
View file @
d1bd4b38
...
...
@@ -380,9 +380,9 @@ public class AIServiceImpl implements AIService {
ChatInputData
chatInputData
=
new
ChatInputData
();
String
systemPrompt
=
"```xml\n"
+
"<instruction>\n"
+
"根据给定的多条JSON格式的文旅部及外交部紧急通知消息,每条消息包含id、
headlin
e和content字段。你需要完成以下任务:\n"
+
"根据给定的多条JSON格式的文旅部及外交部紧急通知消息,每条消息包含id、
titl
e和content字段。你需要完成以下任务:\n"
+
"\n"
+
"1. 紧急程度判断:根据
headlin
e和content的内容,按照以下标准判断紧急程度:\n"
+
"1. 紧急程度判断:根据
titl
e和content的内容,按照以下标准判断紧急程度:\n"
+
" - 极高:存在致命威胁且需强制撤离\n"
+
" - 高:存在重大安全威胁需规避行程\n"
+
" - 中:局部或特定风险需加强防范\n"
+
...
...
@@ -408,7 +408,7 @@ public class AIServiceImpl implements AIService {
" - 不要包含任何XML标签\n"
+
"\n"
+
"处理步骤:\n"
+
"1. 仔细阅读每条消息的
headlin
e和content\n"
+
"1. 仔细阅读每条消息的
titl
e和content\n"
+
"2. 根据内容严重性判断紧急程度\n"
+
"3. 判断是否涉及中国境内\n"
+
"4. 提取明确提到的国家和城市\n"
+
...
...
@@ -426,7 +426,7 @@ public class AIServiceImpl implements AIService {
"[\n"
+
" {\n"
+
" \"id\": 1,\n"
+
" \"
headlin
e\": \"关于暂勿前往XX国的紧急提醒\",\n"
+
" \"
titl
e\": \"关于暂勿前往XX国的紧急提醒\",\n"
+
" \"content\": \"近期XX国发生武装冲突,已造成多人伤亡,建议中国公民暂勿前往。特别提醒在X市的中国公民尽快撤离。\"\n"
+
" }\n"
+
"]\n"
+
...
...
This diff is collapsed.
Click to expand it.
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