I use power automate to get ticketing data in JSON and then to convert that data into embeddings using the ada embeddings model from openai. The result is a nice vector data that is given to the API in a string, however i keep getting errors in the syntax, can someone point me in the right direction?
Hi @t.piek. Keep in mind that vectors aren’t strings; they’re floats. Specifically, a list of floats. So you have to make sure you’re passing the right kind of data to Pinecone or you’ll get errors like this.
The string as in input in the UI probably works because the Pinecone Team can expect the input to try to return a string value and then parse it into a Float array.
The API does not have this force-parse because that’s not its responsibility - the API requires a list of Float values so all you need to do is make sure the vector array is a list of Floats going into Pinecone.
That being said, the vector values from OpenAI are returned in the correct format already (list of Floats) so you shouldn’t be doing any type conversions before upsertion