Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds check to ensure correct embedding vector dimensions are used #177

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

justin-cechmanek
Copy link
Collaborator

Currently our semantic cache allows for specifying the vector in calls to store() and check(), but if the vector dimension does not match the schema dimensions this fails silently. This PR adds a check to verify correct vector dimensions and raises an error if they do not match.

@justin-cechmanek justin-cechmanek added the bug Something isn't working label Jul 2, 2024
Copy link
Collaborator

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

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

LGTM!

@tylerhutcherson tylerhutcherson merged commit aa05797 into main Jul 3, 2024
20 checks passed
@tylerhutcherson tylerhutcherson deleted the bugfix/RAAE-159/validate-vector-dims branch July 3, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants