libSQL/SQLite database adapter with native vector support.
This is the recommended adapter for new installations as it requires no external database server - everything is stored in a single file.
Features
- Native F32_BLOB/F64_BLOB vector types (no extensions needed)
- Built-in vector similarity functions
- DiskANN-based vector indexing
- Single-file database (easy backup/restore)
- Cross-platform support
Requirements
- ecto_libsql package
- libSQL library (bundled with ecto_libsql via Rust NIFs)
Configuration
config :recollect, :database_adapter, Recollect.DatabaseAdapter.LibSQLDatabase URL
Local file:
database: "/path/to/recollect.db"Remote (Turso):
database: "libsql://..."
key: "your-auth-token"
Summary
Functions
Returns SQL for inserting a row with an embedding column.
Convert an embedding list to libSQL vector32() SQL expression.