sqlite_plus_vec 0.1.0
sqlite_plus_vec: ^0.1.0 copied to clipboard
Brute-force vec0 vector search for sqlite_plus, with ORM nearest queries.
Changelog #
0.1.0 #
Depends on sqlite_plus 0.1.6. 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.