Skip to content

Conversation

kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Feb 11, 2025

Fixes #564


[sc-62701]

@teo-tsirpanis teo-tsirpanis removed the request for review from NikolaosPapailiou March 4, 2025 13:20
Comment on lines +415 to +419
# In the case that current domain is non-empty, we need to consider it
if hasattr(schema, "current_domain") and not schema.current_domain.is_empty:
dimensions = np.int64(schema.current_domain.dim(0).domain[1]) + 1
else:
dimensions = np.int64(schema.domain.dim(0).domain[1]) + 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the number of dimensions is an immutable value that is selected at the time of creating the embeddings, it seems more appropriate to use the similarly immutable domain of TileDB arrays.

If we want to support ingesting a subset of dimensions from the input file, I think we should have the user explicitly specify it, rather than guessing it from sources like the current domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use array "current domain" for vector dimension
2 participants