Skip to content

Commit fd193ae

Browse files
vlaskybuduclaude
committed
Fix Ruby documentation example errors
Incorporates upstream PR asg017#215 with additional fix: - Fix extra closing bracket (PR asg017#215) - Fix incorrect variable name: `query` → `embedding` Co-Authored-By: Nicolas Buduroi <[email protected]> Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 606e000 commit fd193ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/using/ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ If your embeddings are provided as a list of numbers, use `.pack("f*")` to conve
3535

3636
```ruby
3737
embedding = [0.1, 0.2, 0.3, 0.4]
38-
result = db.execute("SELECT vec_length(?)", [query.pack("f*")]])
38+
result = db.execute("SELECT vec_length(?)", [embedding.pack("f*")])
3939
puts result.first.first # 4
4040
```

0 commit comments

Comments
 (0)