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" +