From e21c3ad1633f8b4c26a9ae1cfc86c0b75affd90c Mon Sep 17 00:00:00 2001 From: vga91 Date: Wed, 15 Jan 2025 17:17:54 +0100 Subject: [PATCH] [NOID] fix compile errors --- full/src/main/java/apoc/vectordb/Pinecone.java | 2 +- full/src/main/java/apoc/vectordb/PineconeHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/full/src/main/java/apoc/vectordb/Pinecone.java b/full/src/main/java/apoc/vectordb/Pinecone.java index 3aca834ace..6baba680e8 100644 --- a/full/src/main/java/apoc/vectordb/Pinecone.java +++ b/full/src/main/java/apoc/vectordb/Pinecone.java @@ -184,7 +184,7 @@ private Stream getCommon( String url = "%s/vectors/fetch"; Map config = getVectorDbInfo(hostOrKey, index, configuration, url); - VectorEmbeddingConfig conf = DB_HANDLER.getEmbedding().fromGet(config, procedureCallContext, ids); + VectorEmbeddingConfig conf = DB_HANDLER.getEmbedding().fromGet(config, procedureCallContext, ids, index); return getEmbeddingResultStream(conf, procedureCallContext, tx, v -> { Object vectors = ((Map) v).get("vectors"); diff --git a/full/src/main/java/apoc/vectordb/PineconeHandler.java b/full/src/main/java/apoc/vectordb/PineconeHandler.java index 7f1b2df673..9f4ca4aa21 100644 --- a/full/src/main/java/apoc/vectordb/PineconeHandler.java +++ b/full/src/main/java/apoc/vectordb/PineconeHandler.java @@ -69,7 +69,7 @@ static class PineconeEmbeddingHandler implements VectorEmbeddingHandler { */ @Override public VectorEmbeddingConfig fromGet( - Map config, ProcedureCallContext procedureCallContext, List ids) { + Map config, ProcedureCallContext procedureCallContext, List ids, String collection) { List fields = procedureCallContext.outputFields().collect(Collectors.toList()); config.put(BODY_KEY, null);