by ComputerGuru · 2y ago · 0 comments
With sqlite-vec's builtin binary quantization, you should be able to do something like:
CREATE VIRTUAL TABLE vec_files USING vec0 (
contents_embedding bit[1536]
);
INSERT INTO vec_files(rowid,contents_embedding)
VALUES (
(1, vec_quantize_binary( /* 1536-dimension float vector here*/))
)My embedding is already binary, presumably I can bind a blob instead of the call to vec_quantize_binary?