|
|
|
@ -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));
|
|
|
|
|
|
|
|
|
|