From d7b89cd1b383d333101908d2be5c2178349929fd Mon Sep 17 00:00:00 2001 From: lixiang <17851857880@163.com> Date: Mon, 18 Aug 2025 11:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=91=E9=87=8F=E5=BA=93sql=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8E=BB=E9=99=A4=E5=8C=B9=E9=85=8D=E5=88=86=E5=80=BC?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/VectorStoreServiceImpl.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java b/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java index 85534b2c..f3e83b11 100644 --- a/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java +++ b/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java @@ -42,7 +42,7 @@ public class VectorStoreServiceImpl implements VectorStoreService { private final ConfigService configService; - private EmbeddingStore embeddingStore; +// private EmbeddingStore embeddingStore; private WeaviateClient client; @@ -82,14 +82,14 @@ public class VectorStoreServiceImpl implements VectorStoreService { log.info("Schema εˆ›ε»ΊζˆεŠŸ: {}", className); } } - embeddingStore = WeaviateEmbeddingStore.builder() - .scheme(protocol) - .host(host) - .objectClass(className) - .scheme(protocol) - .avoidDups(true) - .consistencyLevel("ALL") - .build(); +// embeddingStore = WeaviateEmbeddingStore.builder() +// .scheme(protocol) +// .host(host) +// .objectClass(className) +// .scheme(protocol) +// .avoidDups(true) +// .consistencyLevel("ALL") +// .build(); } @Override @@ -148,7 +148,7 @@ public class VectorStoreServiceImpl implements VectorStoreService { String graphQLQuery = String.format( "{\n" + " Get {\n" + - " %s(nearVector: {vector: [%s], certainty: %f} limit: %d) {\n" + + " %s(nearVector: {vector: [%s]} limit: %d) {\n" + " text\n" + " fid\n" + " kid\n" +