Skip to content

Commit

Permalink
Update js.md (asg017#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
7flash authored Nov 26, 2024
1 parent d1f6a81 commit 2abca78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/using/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2abca78

Please sign in to comment.