Skip to content

Commit dae6d7b

Browse files
committed
Simplified example [skip ci]
1 parent d9b072a commit dae6d7b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/cohere/src/main/java/com/example/Example.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.fasterxml.jackson.databind.JsonNode;
2020
import com.fasterxml.jackson.databind.node.ObjectNode;
2121
import com.pgvector.PGbit;
22-
import com.pgvector.PGvector;
2322

2423
public class Example {
2524
public static void main(String[] args) throws IOException, InterruptedException, SQLException {
@@ -35,8 +34,6 @@ public static void main(String[] args) throws IOException, InterruptedException,
3534
setupStmt.executeUpdate("CREATE EXTENSION IF NOT EXISTS vector");
3635
setupStmt.executeUpdate("DROP TABLE IF EXISTS documents");
3736

38-
PGvector.addVectorType(conn);
39-
4037
Statement createStmt = conn.createStatement();
4138
createStmt.executeUpdate("CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1024))");
4239

0 commit comments

Comments
 (0)