|
|
@ -64,6 +64,9 @@ public class AnswerQuestionHandler {
|
|
|
|
return answer;
|
|
|
|
return answer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 采用了新的提示词方案,好像比之前的那个要好一点
|
|
|
|
|
|
|
|
*/
|
|
|
|
public String answerSingleQuestionNew(String question, Map<String, List<String>> detailMap) {
|
|
|
|
public String answerSingleQuestionNew(String question, Map<String, List<String>> detailMap) {
|
|
|
|
String template = "作为AI助手,你的任务是帮助用户查找和理解特定政务的政策内容并给于用户答案。在这个场景中,你将使用政策内容来回答用户问题:{}。请根据政策内容\n" +
|
|
|
|
String template = "作为AI助手,你的任务是帮助用户查找和理解特定政务的政策内容并给于用户答案。在这个场景中,你将使用政策内容来回答用户问题:{}。请根据政策内容\n" +
|
|
|
|
"\"\"\"{}\"\"\"\n" +
|
|
|
|
"\"\"\"{}\"\"\"\n" +
|
|
|
|