Update js.md (#145)

This commit is contained in:
Igor Berlenko 2024-11-27 03:29:15 +08:00 committed by GitHub
parent d1f6a81482
commit 2abca78d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ sqliteVec.load(db);
const embedding = new Float32Array([0.1, 0.2, 0.3, 0.4]);
const { result } = db
.prepare("select vec_length(?)",)
.prepare("select vec_length(?) as result",)
.get(embedding);
console.log(result); // 4