Embeddings Openai unable to send the vector array to PINECONE

I’m trying to integrate openAi with Pinecone query, but I’m having problems.
I was able to generate the embeddings via OPENAI but I am unable to send the vector array to PINECONE, as shown in the attached images.

Apparently it is only sending the first vector, and not the 1536 it should.

I got this error message:

RuntimeError

[400] Vector dimension 1 does not match the dimension of the index 1536

Can anyone give me a tip please? Thanks

I managed to fix it:

step1 :

step2 :

Current remaining error:

2 Likes

Fixed too. Make sure to not have anything here:

2 Likes