多场景分析代码架构

This commit is contained in:
zhonghua1
2026-01-06 22:07:30 +08:00
parent 146d56fbd4
commit be1554cd9a
3 changed files with 218 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
package com.rj.common;
/**
* 音频文本分析场景类型
* 不同场景对应不同的系统/用户提示词以及大模型配置。
*/
public enum AudioAnalysisSceneType {
/**
* 家具销售/家居意向场景
*/
SCENARIO_FURNITURE_SALE(
"prompts/audio_text_analysis_furniture_system.txt",
"prompts/audio_text_analysis_furniture_user.txt",
"qwen-plus"
),
/**
* 会议纪要/会议分析场景
* 提示词文件和模型可根据实际需要进行调整。
*/
SCENARIO_MEETING_SUMMARY(
"prompts/audio_text_analysis_meeting_system.txt",
"prompts/audio_text_analysis_meeting_user.txt",
"qwen-plus"
),
/**
* 房产销售/置业顾问场景
*/
SCENARIO_CAR_SALE(
"prompts/audio_text_analysis_real_estate_system.txt",
"prompts/audio_text_analysis_real_estate_user.txt",
"qwen-plus"
);
private final String systemPromptPath;
private final String userPromptPath;
private final String modelName;
AudioAnalysisSceneType(String systemPromptPath, String userPromptPath, String modelName) {
this.systemPromptPath = systemPromptPath;
this.userPromptPath = userPromptPath;
this.modelName = modelName;
}
public String getSystemPromptPath() {
return systemPromptPath;
}
public String getUserPromptPath() {
return userPromptPath;
}
public String getModelName() {
return modelName;
}
}