多场景分析代码架构
This commit is contained in:
60
src/main/java/com/rj/common/AudioAnalysisSceneType.java
Normal file
60
src/main/java/com/rj/common/AudioAnalysisSceneType.java
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user