Hi everyone,
I have been struggling for hours with the expected format of the JSON input of my Supabase call.
So I’m starting from this output:
It’s an array that contains 3 collections in which we can find an embedding vector (array of 1536 numbers) in the body :
[…]
I am trying to send to Supabase an array containing those 3 vectors in the variable “query_embeddings”.
The expect format in my Supabase function for this variable is : vector(1536)[Array]
Here is the input I’m trying to enter in my Supabase module (I also tried many others) :
Here is how it looks on the input bundle :
I keep getting either the 400 error or the “Vector must starts with [“ error.
I’ve tried many solutions (toString / toArray / putting [ & ] by hand everywhere etc.), nothing works
What would be the correct way to call this array of vector ?
PS :
If that can help :
In another scenario, when Supabase was waiting for a single vector(1536), I managed to make it work by putting a toString like this :
{
“query_embedding”: {{toString(6.body.data[*].embedding)}},
“match_threshold”: 0.2,
“match_count”: 2
}



