Embedding api response order

I am using embedding api to generate vectors from an array of string. How do I make sure that the embeddings in the response are in the same order as the input array, I could not find clarity on this in the api reference.

Hi @shaswat97

Welcome to the OpenAI community.

If you are referring to batching, then rest assured that the indices of embedding objects you receive will correspond to the respective indices of the elements of the batch of text you sent.