We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 783a219 commit c2917faCopy full SHA for c2917fa
examples/loading/example.rb
@@ -20,10 +20,10 @@
20
coder = PG::BinaryEncoder::CopyRow.new
21
conn.copy_data("COPY items (embedding) FROM STDIN WITH (FORMAT BINARY)", coder) do
22
embeddings.each_over_axis(0).with_index do |embedding, i|
23
+ conn.put_copy_data([Pgvector::Vector.new(embedding).to_binary])
24
+
25
# show progress
26
putc "." if i % 10000 == 0
-
- conn.put_copy_data([Pgvector::Vector.new(embedding).to_binary])
27
end
28
29
0 commit comments