Why did the OpenAI embeddings endpoint change output dimensions

0 votes
May 11 in Generative AI by anonymous
• 24,180 points
38 views

1 answer to this question.

0 votes

The OpenAI embeddings endpoint does not randomly “break” dimensions , the behavior changed because new embedding models introduced configurable output sizes and different default vector lengths.

Before in the old model
Text-embedded-ada-020 always would return 1536 dimensions

In the new model which  was introduced in 2024

Text-embedded-3-small =default 1536 dimensions

Text-embedded-3-large = default 3072 dimensions 

OpenAI added the dimension parameter
Now you can explicitly shorten the embeddings 

Json

{

  "model": "text-embedding-3-large",

  "input": "hello world",

  "dimensions": 1024

}

This means now the same output can return 1536,3072,1024,512 dimensions etc
I hope this helps .

answered May 12 by anonymous
• 740 points

Related Questions In Generative AI

0 votes
0 answers
0 votes
1 answer

Why does my GAN model output blurry images despite using a deep discriminator?

Blurry images in GAN outputs often result ...READ MORE

answered Jan 7, 2025 in Generative AI by megha goyal
960 views
0 votes
1 answer

Why does my model generate inconsistent output in a conditional GAN?

To address this, ensure the conditioning input ...READ MORE

answered Jan 9, 2025 in Generative AI by evanjilin joshep
748 views
0 votes
1 answer

How do latent embeddings influence the creativity of Generative AI in image synthesis?

Latent embeddings influence the creativity of Generative ...READ MORE

answered Jan 17, 2025 in Generative AI by roomie
742 views
0 votes
1 answer
0 votes
1 answer

My script stopped working after OpenAI switched to the new Responses API. How do I migrate from ChatCompletion?

The responses API is quite different from ...READ MORE

answered May 12 in Generative AI by anonymous
• 740 points
45 views
0 votes
1 answer

Why does my Hugging Face inference endpoint fail after enabling token authentication?

Oh , maybe you aren't sending the ...READ MORE

answered May 12 in Generative AI by anonymous
• 740 points
36 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP