Replies: 1 comment 1 reply
-
@firmanjml The distance calculated by ObjectBox when performing a nearest neighbor search is not in the range
The threshold of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thank you for sharing this project, it’s an excellent resource for the community to learn from.
I just have a quick question (this isn’t an issue report).
I noticed that you're using ObjectBox to store vectors, and I came across a function in your code.
Since ObjectBox provides a built-in nearestNeighbour function that can be used with cosine distance to determine vector similarity, I'm wondering...
Is it necessary to use the cosineDistance function again after calling nearestNeighbour?
From what I understand, nearestNeighbour already handles the cosine distance calculation to find the most similar vectors.
Objectbox Data Model & Vector Index
VectorDistanceType COSINE
consineDistance function ln 113
Beta Was this translation helpful? Give feedback.
All reactions