A SQLite extension for efficient vector search, based on Faiss!
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
deno.land/x
Versions
- v0.1.2Latest
- v0.1.2-alpha.3
- v0.1.2-alpha.2
- v0.1.2-alpha.1
- v0.1.1
- v0.1.1-alpha.22
- v0.1.1-alpha.21
- v0.1.1-alpha.20
- v0.1.1-alpha.19
- v0.1.1-alpha.18
- v0.1.1-alpha.17
- v
- v0.1.1-alpha.15
- v0.1.1-alpha.13
- v0.1.1-alpha.12
- v0.1.1-alpha.11
- v0.1.1-alpha.10
- v0.1.1-alpha.9
- v0.1.1-alpha.8
- v0.1.1-alpha.7
- v0.1.1-alpha.6
- v0.1.1-alpha.6
- v0.1.1-alpha.6
- v0.1.1-alpha.6
- v0.1.1-alpha.6
- v0.1.1-alpha.5
- v0.1.1-alpha.4
- v0.1.1-alpha.3
- v0.1.1-alpha.2
- v0.1.1-alpha.1
- v0.1.0
- v0.1.0-alpha.1
- v0.0.6
- v0.0.6-alpha.1
- v0.0.5
- v0.0.5-alpha.1
- v0.0.4-alpha.7
- v0.0.4-alpha.6
- v0.0.4-alpha.5
- v0.0.4-alpha.4
- v0.0.4-alpha.3
- v0.0.4-alpha.2
- v0.0.4-alpha.1
- v0.0.3
- v0.0.2
- v0.0.2-alpha.5
- v0.0.2-alpha.3
- v0.0.2-alpha.2
- v0.0.2-alpha.1
x/sqlite_vss
Deno Module
The sqlite-vss
SQLite extension is available to Deno developers with the x/sqlite_vss
Deno module. It works with x/sqlite3
, the fastest and native Deno SQLite3 module.
import { Database } from "https://deno.land/x/sqlite3@0.8.0/mod.ts";
import * as sqlite_vss from "https://deno.land/x/sqlite_vss@v0.1.1-alpha.16/mod.ts";
const db = new Database(":memory:");
db.enableLoadExtension = true;
sqlite_vss.load(db);
const [version] = db
.prepare("select vss_version()")
.value<[string]>()!;
console.log(version);
Like x/sqlite3
, x/sqlite_vss
requires network and filesystem permissions to download and cache the pre-compiled SQLite extension for your machine. Though x/sqlite3
already requires --allow-ffi
and --unstable
, so you might as well use --allow-all
/-A
.
deno run -A --unstable <file>
x/sqlite_vss
does not work with x/sqlite
, which is a WASM-based Deno SQLite module that does not support loading extensions.