sqlite_plus_vec 0.1.1
sqlite_plus_vec: ^0.1.1 copied to clipboard
Brute-force vec0 vector search for sqlite_plus, with ORM nearest queries.
Changelog #
0.1.1 #
Depends on sqlite_plus ^0.1.7. vec0 is unchanged. The README links the other packages on pub.dev and shows a short example of each.
0.1.0 #
Brute-force vec0 virtual table for one little-endian float32 column.
SqlitePlusVec.registeraccepts aSqliteDatabase, aMutableSqliteDatabase, or the connection'sSqlFunctionRegistry.CREATE VIRTUAL TABLE ... USING vec0(embedding float[N] distance_metric=l2|cosine)scans every row forembedding MATCH ? AND k = ?.vecDistance,encodeVec, anddecodeVecare the same float32 math. Dimensions are 1 to 4096.kis 1 to 100000.- An ORM table uses
DbModules.vec0and@DbVector.nearestreturns thekclosest rows. - The scan is not an approximate index. The file is not a sqlite-vec database.