Bladeren bron

动态传参

feng 9 maanden geleden
bovenliggende
commit
faa751935d

+ 1 - 1
ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java

@@ -333,7 +333,7 @@ public class VectorStoreServiceImpl implements VectorStoreService {
         String graphqlQuery = String.format(
                 "{" +
                         "  Get {%n" +
-                        "    %s(nearVector: {vector: [%s], certainty: 0.7}, limit: %d) {%n" +
+                        "    %s(nearVector: {vector: [%s], certainty:"+score+"}, limit: %d) {%n" +
                         "      text%n" +
                         "      docId%n" +
                         "      filename%n" +