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 8994a09 commit bd39598Copy full SHA for bd39598
examples/loading/src/main.rs
@@ -36,13 +36,13 @@ fn main() -> Result<(), Box<dyn Error>> {
36
let writer = client.copy_in("COPY items (embedding) FROM STDIN WITH (FORMAT BINARY)")?;
37
let mut writer = BinaryCopyInWriter::new(writer, &[vector_type]);
38
for (i, embedding) in embeddings.into_iter().enumerate() {
39
+ writer.write(&[&Vector::from(embedding)])?;
40
+
41
// show progress
42
if i % 10000 == 0 {
43
print!(".");
44
io::stdout().flush()?;
45
}
-
- writer.write(&[&Vector::from(embedding)])?;
46
47
writer.finish()?;
48
println!("\nSuccess!");
0 commit comments