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

Weaviate vectorizer with google gemini does not work #192

Closed
abab-dev opened this issue Jan 9, 2025 · 5 comments
Closed

Weaviate vectorizer with google gemini does not work #192

abab-dev opened this issue Jan 9, 2025 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@abab-dev
Copy link

abab-dev commented Jan 9, 2025

I am following this demo and there is absolutely nothing wrong with my api key as it generates embedding as you can see in my repo here.
I am using weaviate client "weaviate-client>=4.10.2".
here is error log .

image

What might be problem? I am using free cloud instance of weaviate cloud and collection is getting created as well

image

@erika-cardenas
Copy link
Member

Hi @abab-dev, thank you for opening up the issue!

I've seen this error before -- there is a problem with how the headers are sent to Google. Are you using AI Studio or Vertex AI?

@erika-cardenas erika-cardenas self-assigned this Jan 9, 2025
@erika-cardenas erika-cardenas added the bug Something isn't working label Jan 9, 2025
@abab-dev
Copy link
Author

abab-dev commented Jan 10, 2025

@erika-cardenas I am using Google AI Studio. Here is code. Here is another minimal example. Both of them are giving same error.
And here is example of explicitly calculating embeddings and then inserting which works as expected

@erika-cardenas
Copy link
Member

Ok, we're looking into it, and we'll have an update by next week! I'll update the notebook once we fix the headers. 🙂

@erika-cardenas
Copy link
Member

Hi @abab-dev,

Thanks for your patience on this! We've fixed the Google headers - you can use X-Goog-Studio-Api-Key and X-Goog-Vertex-Api-Key.

Please test it on the latest Python version 4.10.4 and Weaviate Cloud 1.28.4. Let me know if it works for you!

@erika-cardenas
Copy link
Member

I'm going to close this out now. 🙂

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

No branches or pull requests

2 participants