Skip to content

Commit

Permalink
allow any neighbor compression types
Browse files Browse the repository at this point in the history
  • Loading branch information
sivukhin committed Aug 13, 2024
1 parent 7a0fa8c commit 8604065
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -213594,11 +213594,9 @@ int diskAnnOpenIndex(
if( compressNeighbours == 0 ){
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
}else{
pIndex->nEdgeVectorType = compressNeighbours;
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
}else{
return SQLITE_ERROR;
}

*ppIndex = pIndex;
Expand Down
4 changes: 1 addition & 3 deletions libsql-ffi/bundled/src/sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -213594,11 +213594,9 @@ int diskAnnOpenIndex(
if( compressNeighbours == 0 ){
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
}else{
pIndex->nEdgeVectorType = compressNeighbours;
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
}else{
return SQLITE_ERROR;
}

*ppIndex = pIndex;
Expand Down
4 changes: 1 addition & 3 deletions libsql-sqlite3/src/vectordiskann.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,11 +1749,9 @@ int diskAnnOpenIndex(
if( compressNeighbours == 0 ){
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
}else{
pIndex->nEdgeVectorType = compressNeighbours;
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
}else{
return SQLITE_ERROR;
}

*ppIndex = pIndex;
Expand Down

0 comments on commit 8604065

Please sign in to comment.