We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a83d9 commit a18f8fcCopy full SHA for a18f8fc
.github/workflows/build.yml
@@ -7,7 +7,7 @@ jobs:
7
- uses: actions/checkout@v4
8
- uses: ruby/setup-ruby@v1
9
with:
10
- ruby-version: 3.3
+ ruby-version: 3.4
11
bundler-cache: true
12
- uses: ankane/setup-postgres@v1
13
lib/pgvector/vector.rb
@@ -30,7 +30,7 @@ def to_a
30
31
def to_binary
32
if numo?(@data)
33
- [@data.shape[0], 0].pack("s>s>") + @data.to_network.to_binary
+ [@data.shape[0], 0].pack("s>s>") + @data.to_network.to_binary.force_encoding(Encoding::BINARY)
34
else
35
buffer = [@data.size, 0].pack("s>s>")
36
@data.pack("g*", buffer: buffer)
0 commit comments