Inconsistent results with db.index.vector.queryNodes function

Hi everyone,

I'm experiencing an issue with the db.index.vector.queryNodes function, which is based on cosine similarity. Different values of k give different results (while cosine similarity is the same).

In my case, when I set k to a value less than 8, the closest result is not returned. For example:

How come that the most closest result is not always retrieved?
Has anyone encountered a similar problem or have any insights into why this might be happening?

Neo4j version 5.18.1.

Thank you!