From d726a73ad0b41281c93305e3c238d78b13ada8f9 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 27 Feb 2024 17:32:56 +0800 Subject: [PATCH] =?UTF-8?q?rasa=20:=20=E4=BF=AE=E5=A4=8DText2vecServiceImp?= =?UTF-8?q?l=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/supervision/rasa/service/Text2vecServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java b/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java index f1b2b36c..55917fc4 100644 --- a/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java +++ b/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java @@ -85,7 +85,7 @@ public class Text2vecServiceImpl implements Text2vecService { Assert.notEmpty(text2vecMatchesReq.getQuerySentence(), "querySentence不能为空"); - String path = Objects.isNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH; + String path = Objects.nonNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH; String url = TEXT2VEC_SERVICE_DOMAIN + path; log.info("matches: url is : {},req:{}",url,JSONUtil.toJsonStr(text2vecMatchesReq));