Use
sqlite-vec
when you need a lightweight, embedded solution for vector similarity search. It is ideal for applications that require vector data handling on-device or at the edge, such as mobile apps, IoT devices, or local AI model inference.For NumPy arrays, cast to 32-bit floats with
.astype(np.float32)