提示词完善
This commit is contained in:
@@ -21,6 +21,17 @@ public interface IAudioTextAnalysisLlmService {
|
||||
*/
|
||||
String generateSummaryByLLM(AudioAnalysisSceneType sceneType, String recordingText);
|
||||
|
||||
/**
|
||||
* 与 {@link #generateSummaryByLLM} 相同的提示词与场景逻辑,但通过本地 OpenAI 兼容接口调用大模型
|
||||
* (配置项与客户问答本地模型一致:{@code ai.qa.local.chat-url}、{@code ai.qa.local.default-model}、{@code ai.qa.local.max-tokens};
|
||||
* 另支持 {@code ai.qa.local.context-length}、{@code ai.qa.local.token-margin}、{@code ai.qa.local.min-output-tokens}、{@code ai.qa.local.input-tokens-per-char} 以避免超出本地模型上下文。)
|
||||
*
|
||||
* @param sceneType 业务场景类型
|
||||
* @param recordingText 录音转写文本
|
||||
* @return 大模型返回的原始内容
|
||||
*/
|
||||
String generateSummaryByLocalLLM(AudioAnalysisSceneType sceneType, String recordingText);
|
||||
|
||||
/**
|
||||
* 处理完整的业务逻辑:调用大模型生成总结,解析JSON,保存数据
|
||||
* 此方法用于家具场景的完整业务处理
|
||||
|
||||
Reference in New Issue
Block a user