SQL Anywhere 0.3.0 β vector-native edge
SQL Anywhere 0.3.0 β vector-native edge
SQL Anywhere is one of the few engines to ship native vector search and
bi-directional edge replication in the same file-compatible SQLite fork. 0.3.0
turns that into a batteries-included toolkit for local-first / edge RAG β
retrieval with no extra infrastructure and no network round-trip.
Highlights
- Hybrid search (vector + FTS5) β fuse DiskANN similarity with full-text
relevance via Reciprocal Rank Fusion in one query. - Vector quantization β
compress_neighbors=float16|float8|float1bit
shrinks the DiskANN index up to 5.5Γ (measured) for constrained devices. embed()βsqlanywhere::embed(text, dims)turns text into a vector
inline (vector32(embed(...))), no external pre-compute. Dependency-free
hashing-trick embedder (lexical; swap in a real model for semantic search).- Local RAG example β
cargo run -p sqlanywhere --example local_ragruns the
whole pipeline (embed β quantized index β FTS5 β hybrid RRF) end to end.
Everything is additive and opt-in; databases that don't use the new features
stay byte-compatible with stock SQLite.
Docs
- Guide (why / how / examples):
docs/VECTOR_SEARCH.md - Full changelog: https://github.com/kwhorne/sql-anywhere/blob/main/CHANGELOG.md
Notes
CRDT offline-merge (cr-sqlite) remains on the roadmap β it needs a pinned
nightly toolchain + build-std + C linking and is tracked separately.