mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
misc docs
This commit is contained in:
parent
44b365a23f
commit
d49e8205d1
9 changed files with 75 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue