|
|
|
@ -151,8 +151,8 @@ public class LLMExtractServiceImpl implements LLMExtractService {
|
|
|
|
|
log.info("属性提取请求\n:{}", prompt);
|
|
|
|
|
ChatResponse call = ollamaChatClient.call(new Prompt(new UserMessage(prompt)));
|
|
|
|
|
String content = call.getResult().getOutput().getContent();
|
|
|
|
|
log.info("属性提取结果: {}", content);
|
|
|
|
|
JSONObject jsonObject = new JSONObject(content);
|
|
|
|
|
log.info("属性提取结果: {}", jsonObject);
|
|
|
|
|
List<NotePromptExtractAttributesDto> extractAttributesList = LLMExtractDto.getExtractAttributes();
|
|
|
|
|
extractAttributesMap.forEach((key, value) -> {
|
|
|
|
|
String attrValue = jsonObject.optString(key);
|
|
|
|
|