update:调试优化AI评语模版

develop
PL 2 months ago
parent baea216357
commit 146adb9ae6

@ -6,6 +6,7 @@ import lombok.Data;
*/
@Data
public class WisdomExamCommentsDto {
/**
*
*/
@ -21,9 +22,19 @@ public class WisdomExamCommentsDto {
/**
*
*/
public int scoreRate;
public double scoreRate;
/**
*
*/
public int ranking;
/**
*
*/
public double classRate;
/**
*
*/
public double gradeRate;
}

@ -416,6 +416,26 @@ public class ChatMessageServiceImpl implements ChatMessageService {
//昵称
builder.append(String.format(finalChatModel.getChat().get(0), chatCommentsDto.getName()));
}
switch(phase){
case 1:{
for (WisdomExamCommentsDto examComment : examComments) {
builder.append(String.format(finalChatModel.getCycleChats().get(1), count, examComment.getName(),examComment.getTime(), examComment.getClassRate(),examComment.getGradeRate()));
if (count < examComments.size()) {
count++;
}
}
break;
}
case 2:{
for (WisdomExamCommentsDto examComment : examComments) {
builder.append(String.format(finalChatModel.getCycleChats().get(2), count, examComment.getName(),examComment.getTime(), examComment.getGradeRate()));
if (count < examComments.size()) {
count++;
}
}
break;
}
default:{
for (WisdomExamCommentsDto examComment : examComments) {
builder.append(String.format(finalChatModel.getCycleChats().get(0), count, examComment.getName(),
examComment.getTime(), examComment.getScore(), examComment.getScoreRate(),
@ -424,7 +444,9 @@ public class ChatMessageServiceImpl implements ChatMessageService {
count++;
}
}
//builder.append(String.format(finalChatModel.getEnd().get(0),chatName));
break;
}
}
break;
}
// 智育 学科评语模版

@ -16,7 +16,7 @@
"name": "智育 成绩表现模版",
"role": ["请扮演[%s%s]老师角色,依据我提供的数据,对%s的学习成效表现做一个评价。数据如下\n"],
"chat": ["%s\n,"],
"cycleChats": ["参加第%s次考试结果名称:%s时间:%s得分%s考试得分率%s %% 排名:%s ;\n"],
"cycleChats": ["参加第%s次考试结果名称:%s时间:%s得分%s考试得分率%s %% 排名:%s ;\n","参加第%s次考试结果名称:%s时间:%s班级平均得分率%s %%吗,年级平均得分率:%s %%;\n","参加第%s次考试结果名称:%s时间:%s年级平均得分率%s %%;\n"],
"end": ["请根据我提供的数据,对%s的考试成绩表现做一个评价。\n"],
"limit": "。限制条件如下1、%s字左右2、直接返回评语的内容3、评语的开篇不允许出现提示语4、评语的开篇不允许出现特殊字符。"
},

Loading…
Cancel
Save