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

fix: Google Embeddings model dimension mismatch. #5502

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

akshaykripalani
Copy link

The component for google's embedding generation contained a bug. The line containing np.pad would erroneously pad the vectors returned by google with an extra 768 zeroes. This means that the embedding model that is supposed to output 768 dimensions does not actually output 768 dimensions, resulting in errors when integrating with astraDB. This fix ensures that the google generative embeddings component actually outputs the correct dimension vector.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jan 1, 2025
@akshaykripalani akshaykripalani changed the title Fix Google Embeddings model dimension mismatch. fix: Google Embeddings model dimension mismatch. Jan 1, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 1, 2025
@ogabrielluiz ogabrielluiz requested a review from erichare January 2, 2025 12:36
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant