mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 16:56:27 +02:00
Update js.md (#145)
This commit is contained in:
parent
d1f6a81482
commit
2abca78d35
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ sqliteVec.load(db);
|
||||||
|
|
||||||
const embedding = new Float32Array([0.1, 0.2, 0.3, 0.4]);
|
const embedding = new Float32Array([0.1, 0.2, 0.3, 0.4]);
|
||||||
const { result } = db
|
const { result } = db
|
||||||
.prepare("select vec_length(?)",)
|
.prepare("select vec_length(?) as result",)
|
||||||
.get(embedding);
|
.get(embedding);
|
||||||
|
|
||||||
console.log(result); // 4
|
console.log(result); // 4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue