adorkin commited on
Commit
eb0ad1b
1 Parent(s): ade3b7e

Update build_ann.py

Browse files
Files changed (1) hide show
  1. build_ann.py +0 -5
build_ann.py CHANGED
@@ -32,8 +32,3 @@ neighbors_with_distances = index.get_nns_by_vector(
32
  )
33
  print("Neighbors with distances:", neighbors_with_distances)
34
 
35
- import duckdb
36
-
37
- conn = duckdb.connect("sonajaht.db")
38
- query = "SELECT word_id, value FROM definitions WHERE entry_id in (SELECT unnest(?))"
39
- print(conn.execute(query, [nearest_neighbors]).df())
 
32
  )
33
  print("Neighbors with distances:", neighbors_with_distances)
34