Skip to content

fix: validate embedding vector dimensions before vector store insertion (ref #2265)#2378

Open
hanhan761 wants to merge 2 commits into
microsoft:mainfrom
hanhan761:fix-2265-embed-dim-validation
Open

fix: validate embedding vector dimensions before vector store insertion (ref #2265)#2378
hanhan761 wants to merge 2 commits into
microsoft:mainfrom
hanhan761:fix-2265-embed-dim-validation

Conversation

@hanhan761
Copy link
Copy Markdown

Validate embedding vector dimensions before passing data to the vector store, so inconsistent dimensions produce a clear error message instead of a cryptic LanceDB error.

Related to #2265 - users hit this when their embedding model returns vectors of different lengths, which makes it impossible to insert into a fixed-dimension index.

@hanhan761 hanhan761 requested a review from a team as a code owner May 30, 2026 08:49
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.

1 participant