Spaces:
Running
Running
Update build_ann.py
Browse files- 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 |
|
|
|
|
|
|
|
|
|
|