misc docs

This commit is contained in:
Alex Garcia 2024-06-11 23:58:00 -07:00
parent 44b365a23f
commit d49e8205d1
9 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# Using `sqlite-vec` in Datasette
```bash
datasette install datasette-sqlite-vec
```

View file

@ -0,0 +1,7 @@
# Using `sqlite-vec` in Go
```bash
go get -u github.com/asg017/sqlite-vec/bindings/go/cgo
```
## Working with vectors in Go

13
site/using/js.md Normal file
View file

@ -0,0 +1,13 @@
# Using `sqlite-vec` in Node.js, Deno, and Bun
```bash
npm install sqlite-vec
```
## Working with vectors in JavaScript
## Node.js
## Deno
## Bun

View file

@ -0,0 +1,31 @@
---
title: sqlite-vec in Python
---
# Using `sqlite-vec` in Python
```bash
pip install sqlite-vec
```
```python
import sqlite
import sqlite_vec
db = sqlite3.connect(":memory:")
db.enable_load_extension(True)
sqlite_vec.load(db)
db.enable_load_extension(False)
vec_version, = db.execute("select vec_version()").fetchone()
print(f"vec_version={vec_version}")
```
## Working with Vectors
### Vectors as Lists
### `numpy` Arrays
## Using an up-to-date version of SQLite

View file

@ -0,0 +1,7 @@
# Using `sqlite-vec` in Ruby
```bash
gem install sqlite-vec
```
## Working with vectors in Ruby

View file

@ -0,0 +1,7 @@
# Using `sqlite-vec` in Rust
```bash
cargo add sqlite-vec
```
## Working with vectors in Rust

View file

@ -0,0 +1,5 @@
# Using `sqlite-vec` in `sqlite-utils`
```bash
sqlite-utils install sqlite-utils-sqlite-vec
```

0
site/using/wasm.md Normal file
View file