|
@@ -214,29 +214,25 @@ export default {
|
|
|
}
|
|
|
// console.log(_text);
|
|
|
let msg = `NOTICE
|
|
|
- Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“五级评价细则”给学生作品评分。
|
|
|
+ Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“五级评价细则”给学生作品评分,并生成需要的JSON数据。
|
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
|
#Context
|
|
|
- ## 评价细则
|
|
|
- ${_text}
|
|
|
-
|
|
|
- ## 作业题目
|
|
|
- ${this.toolDetail}
|
|
|
-
|
|
|
- ## 作业内容
|
|
|
- ${con.text}
|
|
|
-
|
|
|
- ## 要求
|
|
|
- 根据评价细则和作业内容与作业题目的相关性评价作业,判断该作业属于五级中的哪个等级。
|
|
|
+ ##要求
|
|
|
+ 根据<评价细则>和<作业内容>与<作业题目>的相关性评价作业,判断该作业属于五级中的哪个等级。
|
|
|
具体的评价标准分为5级——1级,2级,3级,4级,5级。
|
|
|
1 级,没有识别问题和需求;
|
|
|
2 级,问题或需求没有被清晰理解或准确识别;
|
|
|
3 级,问题或需求的一部分被识别;
|
|
|
4 级,问题或需求的大部分被识别;
|
|
|
5 级,问题或需求都被识别。
|
|
|
+
|
|
|
+ ##评分资料
|
|
|
+ 评价细则:${_text}
|
|
|
+ 作业题目:${this.toolDetail}
|
|
|
+ 作业内容:${con.text}
|
|
|
|
|
|
# Format example
|
|
|
[{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'}]
|
|
@@ -336,8 +332,13 @@ export default {
|
|
|
processedData[key] = value;
|
|
|
});
|
|
|
|
|
|
+ for (const key in processedData) {
|
|
|
+ if (!Number.isFinite(processedData[key]*1)) {
|
|
|
+ processedData[key] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
processedData.content = "";
|
|
|
- console.log("processedData", processedData);
|
|
|
|
|
|
let params = {
|
|
|
cid: _this.id,
|
|
@@ -472,8 +473,18 @@ export default {
|
|
|
let value = item[key];
|
|
|
processedData[key] = value;
|
|
|
});
|
|
|
+
|
|
|
+ for (const key in processedData) {
|
|
|
+ if (!Number.isFinite(processedData[key]*1)) {
|
|
|
+ processedData[key] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
processedData.content = "";
|
|
|
|
|
|
+
|
|
|
let params = {
|
|
|
cid: _this.id,
|
|
|
s: stage,
|