-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
On ingestion, the vector dimension is read from the array's dimension 1 domain:
TileDB-Vector-Search/apis/python/src/tiledb/vector_search/ingestion.py
Lines 417 to 421 in f45eff3
if source_type == "TILEDB_SPARSE_ARRAY": | |
schema = tiledb.ArraySchema.load(source_uri) | |
size = np.int64(schema.domain.dim(0).domain[1]) + 1 | |
dimensions = np.int64(schema.domain.dim(1).domain[1]) + 1 | |
return size, dimensions, schema.attr(0).dtype |
But the "current domain" should likely be used instead, if set (new feature).
Alternatively: the ingest
method could take an optional dimensions
arg to use instead of of the one detected by read_source_metadata
, complementing the existing size
arg.
[sc-62701]
johnkerl
Metadata
Metadata
Assignees
Labels
No labels