Skip to content

Commit d042d17

Browse files
author
Nikos Papailiou
committed
Add comment
1 parent 1482ffc commit d042d17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apis/python/src/tiledb/vector_search/flat_index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def __init__(
3636
ctx=self.ctx,
3737
config=config,
3838
)
39+
40+
# Check for existence of ids array. Previous versions were not using external_ids in the ingestion assuming
41+
# that the external_ids were the position of the vector in the array.
3942
if storage_formats[self.storage_version]["IDS_ARRAY_NAME"] + self.index_version in self.group:
4043
self.ids_uri = self.group[
4144
storage_formats[self.storage_version]["IDS_ARRAY_NAME"] + self.index_version

0 commit comments

Comments
 (0)