求职助手岗位推荐 优化推荐逻辑
This commit is contained in:
@@ -622,7 +622,7 @@ public class JobService {
|
||||
// 2. 构造查询参数
|
||||
JobQueryParam queryParam = new JobQueryParam();
|
||||
queryParam.setPageNum(1);
|
||||
queryParam.setPageSize(60);
|
||||
queryParam.setPageSize(100);
|
||||
if (intention != null) {
|
||||
queryParam.setCategoryIds(intention.getCategoryIds());
|
||||
queryParam.setRegionCodes(intention.getRegionCodes());
|
||||
@@ -684,10 +684,11 @@ public class JobService {
|
||||
|
||||
String preferenceInfo = param.getPreference() != null ? param.getPreference() : "无特殊偏好";
|
||||
|
||||
String systemPrompt = "你是一个求职推荐助手。根据用户的偏好,从候选岗位中选出8-10个最合适的岗位。" +
|
||||
String systemPrompt = "你是一个求职推荐助手。从候选岗位中综合评估岗位质量、发展前景、薪资竞争力等因素,选出8-10个最值得推荐的岗位。" +
|
||||
"用户偏好仅作参考,不作为硬性筛选条件,优先推荐整体质量高的岗位。" +
|
||||
"返回JSON格式:{\"summary\":\"推荐说明(14字以内)\",\"jobIds\":[岗位ID列表]}。" +
|
||||
"只返回JSON,不要其他内容。";
|
||||
String userMessage = "【用户偏好】\n" + preferenceInfo + "\n\n【候选岗位】\n" + jobInfo;
|
||||
String userMessage = "【用户偏好(仅供参考)】\n" + preferenceInfo + "\n\n【候选岗位】\n" + jobInfo;
|
||||
|
||||
// 8. 调用AI
|
||||
sw.start("AI调用");
|
||||
|
||||
Reference in New Issue
Block a user