代码提交切换为相似对对比

dev_2.1.0
liu 1 year ago
parent f77e013d96
commit 9584092c48

@ -1,6 +1,7 @@
package com.supervision.manage.controller.qaKnowledge;
import com.supervision.dto.QaKnowledgeDTO;
import com.supervision.manage.service.QaKnowledgeManageService;
import com.supervision.service.AskTemplateQuestionLibraryService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
@ -17,9 +18,17 @@ public class QaKnowledgeManageController {
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
private final QaKnowledgeManageService qaKnowledgeManageService;
@ApiOperation("获取问答知识库")
@GetMapping("queryQaKnowledge")
public List<QaKnowledgeDTO> queryQaKnowledge() {
return askTemplateQuestionLibraryService.queryQaKnowledge();
}
@ApiOperation("手动刷新知识库")
@GetMapping("refreshQaKnowledge")
public void refreshQaKnowledge() {
qaKnowledgeManageService.refreshQaKnowledge();
}
}

@ -126,7 +126,7 @@ public class AskServiceImpl implements AskService {
String talkResult = talkQaSimilarity(talkReqVO.getText(), UserUtil.getUser().getId());
// 调用rasa获取文字内容
//String rasaResult = talkRasa(talkReqVO.getText(), UserUtil.getUser().getId());
log.info("rasa的回复是:{}", talkResult);
log.info("调用对话的回复是:{}", talkResult);
TalkResultResVO talkResultResVO = new TalkResultResVO();
// 如果rasa没有识别出来,则返回默认值
if (StrUtil.isBlank(talkResult)) {

@ -1,5 +1,5 @@
spring:
profiles:
active: test
active: dev
application:
name: virtual-patient-web
Loading…
Cancel
Save