From c777c8d116d35306d4e716b501f955aa3d42a913 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Wed, 25 Sep 2024 17:09:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20weaviate=E5=90=8C=E6=AD=A5=E5=90=91?= =?UTF-8?q?=E9=87=8F=E8=AE=A1=E7=AE=97bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java index f83fb3b..e73e162 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java @@ -167,8 +167,8 @@ public class WeaviateService { // 将entity转换为Map JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(entity, SerializerFeature.WriteMapNullValue)); Map map = new HashMap<>(); - data.add(this.getVectorData(map,attrsMap)); jsonObject.forEach((k,v) -> map.put(k,jsonObject.get(k))); + data.add(this.getVectorData(map,attrsMap)); }); params.put("data",data); String url = gglmUrl + invokeApi.getInsertVectors();