Skip to content

Commit

Permalink
fix: fixed issue with executing SQL SELECT vectorNeighbors();
Browse files Browse the repository at this point in the history
The SQL function called the method that requests a vector (embedding) instead of the key
  • Loading branch information
lvca committed Sep 12, 2023
1 parent 88939ab commit c985e67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Object execute(final Object iThis, final Identifiable iCurrentRecord, fin

final int limit = iParams[2] instanceof Number ? ((Number) iParams[2]).intValue() : Integer.parseInt(iParams[2].toString());

final List<Pair<Vertex, ? extends Number>> neighbors = vIndex.findNeighborsFromVector(key, limit, null);
final List<Pair<Vertex, ? extends Number>> neighbors = vIndex.findNeighborsFromId(key, limit, null);

final ArrayList<Object> result = new ArrayList<>(neighbors.size());
for (Pair<Vertex, ? extends Number> n : neighbors)
Expand Down

0 comments on commit c985e67

Please sign in to comment.