Skip to content

Commit 657ce07

Browse files
committed
fix comment a little bit
1 parent 0ec0147 commit 657ce07

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libsql-sqlite3/src/vectordiskann.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ struct DiskAnnNode {
107107
* so caller which puts nodes in the context can forget about resource managmenet (context will take care of this)
108108
*/
109109
struct DiskAnnSearchCtx {
110-
VectorPair query; /* initial query vector; user query for SELECT and row vector for INSERT */
111-
DiskAnnNode **aCandidates; /* array of candidates ordered by distance to the query (ascending) */
112-
float *aDistances; /* array of distances to the query vector */
110+
VectorPair query; /* initial query vector; user query for SELECT and row vector for INSERT */
111+
DiskAnnNode **aCandidates; /* array of unvisited candidates ordered by distance (possibly approximate) to the query (ascending) */
112+
float *aDistances; /* array of distances (possible approximate) to the query vector */
113113
unsigned int nCandidates; /* current size of aCandidates/aDistances arrays */
114114
unsigned int maxCandidates; /* max size of aCandidates/aDistances arrays */
115115
DiskAnnNode **aTopCandidates; /* top candidates with exact distance calculated */

0 commit comments

Comments
 (0)