You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> SQLite Vector extension for Node.js - Cross-platform vector embeddings and similarity search
6
+
> SQLite Vector extension packaged for Node.js
7
7
8
-
**SQLite Vector**brings powerful vector search capabilities to SQLite in Node.js. Perfect for Edge AI, semantic search, RAG applications, and similarity matching - all running locally without external dependencies.
8
+
**SQLite Vector**is a cross-platform, ultra-efficient SQLite extension that brings vector search capabilities to your embedded database. It works seamlessly on **iOS, Android, Windows, Linux, and macOS**, using just **30MB of memory** by default. With support for **Float32, Float16, BFloat16, Int8, and UInt8**, and **highly optimized distance functions**, it's the ideal solution for **Edge AI** applications.
9
9
10
10
## Features
11
11
12
12
- ✅ **Cross-platform** - Works on macOS, Linux (glibc/musl), and Windows
13
13
- ✅ **Zero configuration** - Automatically detects and loads the correct binary for your platform
14
14
- ✅ **TypeScript native** - Full type definitions included
15
15
- ✅ **Modern ESM + CJS** - Works with both ES modules and CommonJS
16
-
- ✅ **Small footprint** - Only downloads binaries for your platform (~30MB)
16
+
- ✅ **Small footprint** - Only downloads binaries for your platform
17
17
- ✅ **Offline-ready** - No external services required
18
18
19
19
## Installation
@@ -36,61 +36,16 @@ The package automatically downloads the correct native extension for your platfo
36
36
| Linux | x86_64 (musl/Alpine) |`@sqliteai/sqlite-vector-linux-x86_64-musl`|
37
37
| Windows | x86_64 |`@sqliteai/sqlite-vector-win32-x86_64`|
38
38
39
-
## Usage
39
+
## sqlite-vector API
40
+
41
+
For detailed information on how to use the vector extension features, see the [main documentation](https://github.com/sqliteai/sqlite-vector/blob/main/README.md).
For complete, runnable examples, see the [sqlite-extensions-guide](https://github.com/sqliteai/sqlite-extensions-guide/tree/main/examples/node):
120
-
121
-
-**[basic-usage.js](https://github.com/sqliteai/sqlite-extensions-guide/blob/main/examples/node/basic-usage.js)** - Generic extension loading for any @sqliteai extension
122
-
-**[semantic-search.js](https://github.com/sqliteai/sqlite-extensions-guide/blob/main/examples/node/semantic-search.js)** - Complete semantic search with OpenAI or on-device embeddings
123
-
-**[with-multiple-extensions.js](https://github.com/sqliteai/sqlite-extensions-guide/blob/main/examples/node/with-multiple-extensions.js)** - Loading multiple extensions together (vector + sync + AI + js)
59
+
For complete, runnable examples, see the [sqlite-extensions-guide](https://github.com/sqliteai/sqlite-extensions-guide/tree/main/examples/node).
124
60
125
61
These examples are generic and work with all SQLite extensions: `sqlite-vector`, `sqlite-sync`, `sqlite-js`, and `sqlite-ai`.
126
62
@@ -196,131 +132,23 @@ Detects if the system uses musl libc (Alpine Linux, etc.).
196
132
197
133
Error thrown when the SQLite Vector extension cannot be found for the current platform.
198
134
199
-
## Vector Search Guide
200
-
201
-
For detailed information on how to use the vector search features, see the [main documentation](https://github.com/sqliteai/sqlite-vector/blob/main/README.md).
npm install @sqliteai/sqlite-vector-darwin-arm64 # Replace with your platform
252
-
```
253
-
254
-
### Platform Not Detected
255
-
256
-
The package should automatically detect your platform. If detection fails, please [open an issue](https://github.com/sqliteai/sqlite-vector/issues) with:
257
-
- Your OS and architecture
258
-
- Node.js version
259
-
- Output of `node -p "process.platform + '-' + process.arch"`
260
-
261
-
### Alpine Linux / musl
262
-
263
-
On Alpine Linux or other musl-based systems, the package automatically detects musl and installs the correct variant. If you encounter issues:
0 commit comments