|
|
@ -167,8 +167,8 @@ public class WeaviateService { |
|
|
|
// 将entity转换为Map<String,String>
|
|
|
|
// 将entity转换为Map<String,String>
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(entity, SerializerFeature.WriteMapNullValue)); |
|
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(entity, SerializerFeature.WriteMapNullValue)); |
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
data.add(this.getVectorData(map,attrsMap)); |
|
|
|
|
|
|
|
jsonObject.forEach((k,v) -> map.put(k,jsonObject.get(k))); |
|
|
|
jsonObject.forEach((k,v) -> map.put(k,jsonObject.get(k))); |
|
|
|
|
|
|
|
data.add(this.getVectorData(map,attrsMap)); |
|
|
|
}); |
|
|
|
}); |
|
|
|
params.put("data",data); |
|
|
|
params.put("data",data); |
|
|
|
String url = gglmUrl + invokeApi.getInsertVectors(); |
|
|
|
String url = gglmUrl + invokeApi.getInsertVectors(); |
|
|
|