Subject: Error: expected 768 dimensions, not 3072 when using Google Gemini Embedding
Body: Hi everyone,
I’m hitting a roadblock with my n8n workflow (version 2.1.5) while using the Google Gemini Embedding node (model: embedding-001).
The Issue: When trying to upsert data into my Vector Store, I receive the following error:
“Error inserting: expected 768 dimensions, not 3072. 400 Bad Request”
My Setup:
It seems like Gemini is outputting 3072 dimensions, but my vector index is configured for 768.
Any guidance would be much appreciated. Thanks!
1 Like
Hi @frendy_nicodemus make sure the embedding dimensions match both in supabase and and store.
Consider reading these:
just make sure that in supabase it is using vector(3072) and the error should disappear. Classic dimension mismatch error just make sure they match.
1 Like
got it already.. thanks !
1 Like
@frendy_nicodemus Glad it helped! Kindly mark that as a solution to let other’s know where to look for the right answer to your question. Cheers!
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.