Understand the core concepts of SQLite Vector
mainInstant Vector Search
Unlike traditional vector databases that require long preprocessing/indexing phases (like HNSW or DiskANN), sqlite-vector allows for immediate search on existing data.
- No Preindexing: Start searching as soon as data is inserted.
- Zero-cost Updates: Add, remove, or modify vectors without rebuilding an index.
- Standard Schema: Works directly with
BLOBcolumns in ordinary SQLite tables.
Supported Vector Formats
Vectors are stored as binary blobs in BLOB columns. Supported types include:
float32(4 bytes/element)float16(2 bytes/element)bfloat16(2 bytes/element)int8(1 byte/element)uint8(1 byte/element)1bit(1 bit/element)
Supported Distance Metrics
- L2 Distance (Euclidean)
- Squared L2
- L1 Distance (Manhattan)
- Cosine Distance
- Dot Product
- Hamming Distance (only for
1bitvectors)