Skip to content

Commit

Permalink
[NOID] fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 committed Jan 16, 2025
1 parent bb95ae2 commit 9d0e9b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion full/src/main/java/apoc/vectordb/Pinecone.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private Stream<VectorDbUtil.EmbeddingResult> getCommon(
String url = "%s/vectors/fetch";
Map<String, Object> 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");
Expand Down
4 changes: 2 additions & 2 deletions full/src/main/java/apoc/vectordb/PineconeHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static class PineconeEmbeddingHandler implements VectorEmbeddingHandler {
*/
@Override
public <T> VectorEmbeddingConfig fromGet(
Map<String, Object> config, ProcedureCallContext procedureCallContext, List<T> ids) {
Map<String, Object> config, ProcedureCallContext procedureCallContext, List<T> ids, String collection) {
List<String> fields = procedureCallContext.outputFields().collect(Collectors.toList());

config.put(BODY_KEY, null);
Expand Down Expand Up @@ -118,7 +118,7 @@ private VectorEmbeddingConfig getVectorEmbeddingConfig(
headers.remove(METHOD_KEY);
apiConfig.setHeaders(headers);

return VectorEmbeddingHandler.populateApiBodyRequest(conf, additionalBodies);
return populateApiBodyRequest(conf, additionalBodies);
}
}
}

0 comments on commit 9d0e9b1

Please # to comment.