|
|
|
@ -55,10 +55,10 @@ public class Text2vecServiceImpl implements Text2vecService {
|
|
|
|
|
|
|
|
|
|
String path = Objects.isNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH;
|
|
|
|
|
String url = TEXT2VEC_SERVICE_DOMAIN + path;
|
|
|
|
|
log.info("matches: url is : {}",url);
|
|
|
|
|
log.info("matches: url is : {},req:{}",url,JSONUtil.toJsonStr(text2vecMatchesReq));
|
|
|
|
|
|
|
|
|
|
String body = HttpUtil.post(url, JSONUtil.toJsonStr(text2vecMatchesReq));
|
|
|
|
|
log.info("updateDataset: res is :{}",body);
|
|
|
|
|
log.info("matches: res is :{}",body);
|
|
|
|
|
JSONObject jsonBody = JSONUtil.parseObj(body);
|
|
|
|
|
|
|
|
|
|
Assert.isTrue("success".equals(jsonBody.get("status")),"查询失败");
|
|
|
|
|