Issue with Vector Dimension Mismatch in Supabase Vector Store: 1536 vs. 2048 Error

I am encountering an issue when trying to insert vectors into the Supabase Vector Store node in n8n. The vectors generated by Ollama embeddings are not matching the expected dimensions required by Supabase. The error I receive states that the expected dimensionality is 1536, but the vectors generated are 2048, resulting in a 400 Bad Request error.

Error inserting: expected 1536 dimensions, not 2048 400 Bad Request

Please share your workflow

Hey @Custodian4797 hope all is good. Welcome to the community.

The dimensionality of the embeddings needs to match. If you cannot make ollama create embeddings of the size 1536, then make sure the table is created with 2048 dimensions. You can change these numbers here:

2 Likes

Thank you a lot! This is it!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.