-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
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.
cosineDistance(x1: FloatArray, x2: FloatArray) {}
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels