Skip to content

Commit df57c5b

Browse files
authored
Update vector.py
fix two typos
1 parent 397c429 commit df57c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/vector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"CREATE TABLE movies (title TEXT, year INT, embedding F32_BLOB(3))")
77
conn.execute("CREATE INDEX movies_idx ON movies (libsql_vector_idx(embedding))")
88

9-
conn.execute(""""
9+
conn.execute("""
1010
INSERT INTO movies (title, year, embedding) VALUES
1111
('Napoleon', 2023, vector('[1,2,3]')),
1212
('Black Hawk Down', 2001, vector('[10,11,12]')),
@@ -20,4 +20,4 @@
2020
JOIN movies ON movies.rowid = id
2121
""")
2222

23-
print(cur.fetchal())
23+
print(cur.fetchall())

0 commit comments

Comments
 (0)